]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Don't pass NULL to the %s format.
authorDima Dorfman <dd@FreeBSD.org>
Sun, 22 Apr 2001 03:00:09 +0000 (03:00 +0000)
committerDima Dorfman <dd@FreeBSD.org>
Sun, 22 Apr 2001 03:00:09 +0000 (03:00 +0000)
Reviewed by: kris

libutil/pw_util.c

index fe99d7171b346371370781e1ecaa0e77a957fbaf..c6c70ffb3e992818d9944ec2d6ea0ed7eecd87c1 100644 (file)
@@ -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");