summaryrefslogtreecommitdiff
path: root/build/names.c
diff options
context:
space:
mode:
authorroot <devnull@localhost>1997-02-27 04:31:46 +0000
committerroot <devnull@localhost>1997-02-27 04:31:46 +0000
commitb40b26d0200d676a8aa6427f82a3e9c12765b060 (patch)
tree125edcb2a2c2f7d9c7858ef427feb3455d45d3c6 /build/names.c
parent2816621389fe7de24db3639d7bfb0ac9579dc097 (diff)
downloadlibrpm-tizen-b40b26d0200d676a8aa6427f82a3e9c12765b060.tar.gz
librpm-tizen-b40b26d0200d676a8aa6427f82a3e9c12765b060.tar.bz2
librpm-tizen-b40b26d0200d676a8aa6427f82a3e9c12765b060.zip
if user/group olookup fails return NULL
CVS patchset: 1461 CVS date: 1997/02/27 04:31:46
Diffstat (limited to 'build/names.c')
-rw-r--r--build/names.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/names.c b/build/names.c
index f64a1f49d..77cb8fe30 100644
--- a/build/names.c
+++ b/build/names.c
@@ -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];
}