summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vipw
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-04-22 03:00:09 +0000
committerdd <dd@FreeBSD.org>2001-04-22 03:00:09 +0000
commitd3657cb5d2b77d722e04d861c9a973d5e3dbd1c8 (patch)
treeba5097e6e0dd5cce7a90dc2f568733c2861ea6cd /usr.sbin/vipw
parent95ccde8ac80f0b9dbac5ee894f1a5c00d38477f8 (diff)
downloadFreeBSD-src-d3657cb5d2b77d722e04d861c9a973d5e3dbd1c8.zip
FreeBSD-src-d3657cb5d2b77d722e04d861c9a973d5e3dbd1c8.tar.gz
Don't pass NULL to the %s format.
Reviewed by: kris
Diffstat (limited to 'usr.sbin/vipw')
-rw-r--r--usr.sbin/vipw/pw_util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/vipw/pw_util.c b/usr.sbin/vipw/pw_util.c
index fe99d71..c6c70ffb 100644
--- a/usr.sbin/vipw/pw_util.c
+++ b/usr.sbin/vipw/pw_util.c
@@ -249,8 +249,12 @@ pw_error(name, err, eval)
#ifdef YP
extern int _use_yp;
#endif /* YP */
- if (err)
- warn("%s", name);
+ if (err) {
+ if (name != NULL)
+ warn("%s", name);
+ else
+ warn(NULL);
+ }
#ifdef YP
if (_use_yp)
warnx("NIS information unchanged");
OpenPOWER on IntegriCloud