diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2001-04-22 03:00:09 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2001-04-22 03:00:09 +0000 |
commit | 3babad2e4242ebffd170c924abbca43dfe20c0ab (patch) | |
tree | 624f967772dc6a710658b6a2dec555341f8dffd6 /usr.sbin/vipw | |
parent | 58eac5ef6ab246cc4df17154450a598f700d791b (diff) | |
download | src-3babad2e4242ebffd170c924abbca43dfe20c0ab.tar.gz src-3babad2e4242ebffd170c924abbca43dfe20c0ab.zip |
Don't pass NULL to the %s format.
Reviewed by: kris
Notes
Notes:
svn path=/head/; revision=75821
Diffstat (limited to 'usr.sbin/vipw')
-rw-r--r-- | usr.sbin/vipw/pw_util.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/vipw/pw_util.c b/usr.sbin/vipw/pw_util.c index fe99d7171b34..c6c70ffb3e99 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"); |