if user/group o\blookup fails return NULL
authorroot <devnull@localhost>
Thu, 27 Feb 1997 04:31:46 +0000 (04:31 +0000)
committerroot <devnull@localhost>
Thu, 27 Feb 1997 04:31:46 +0000 (04:31 +0000)
CVS patchset: 1461
CVS date: 1997/02/27 04:31:46

build/names.c

index f64a1f4..77cb8fe 100644 (file)
@@ -53,7 +53,7 @@ char *getUname(uid_t uid)
     if (pw) {
        unames[x] = strdup(pw->pw_name);
     } else {
-       unames[x] = "";
+       unames[x] = NULL;
     }
     return unames[x];
 }
@@ -122,7 +122,7 @@ char *getGname(gid_t gid)
     if (gr) {
        gnames[x] = strdup(gr->gr_name);
     } else {
-       gnames[x] = "";
+       gnames[x] = NULL;
     }
     return gnames[x];
 }