diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-01 22:35:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-01 22:35:28 +0000 |
commit | 16aac66378ca2ceccf03335e8880f8a326d4b00d (patch) | |
tree | a915723ca2c72539fd4014c11f7956f0c5a7d695 | |
parent | c706ad8896b6729584fb63f3a2bac172b13d1125 (diff) | |
download | glibc-16aac66378ca2ceccf03335e8880f8a326d4b00d.tar.gz glibc-16aac66378ca2ceccf03335e8880f8a326d4b00d.tar.xz glibc-16aac66378ca2ceccf03335e8880f8a326d4b00d.zip |
Update.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization of return value. * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | nscd/nscd_getgr_r.c | 3 | ||||
-rw-r--r-- | nscd/nscd_gethst_r.c | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index b949394140..5416539278 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-03-01 Ulrich Drepper <drepper@redhat.com> + * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization + of return value. + * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. + * sysdeps/unix/sysv/linux/kernel-features.h: Add support for __ASSUME_GETDENTS32_D_TYPE. * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c index 50932668f4..f6b0b5c3b0 100644 --- a/nscd/nscd_getgr_r.c +++ b/nscd/nscd_getgr_r.c @@ -81,6 +81,9 @@ nscd_getgr_r (const char *key, size_t keylen, request_type type, return -1; } + /* No value found so far. */ + *result = NULL; + req.version = NSCD_VERSION; req.type = type; req.key_len = keylen; diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c index 1089b967d0..438217b1d6 100644 --- a/nscd/nscd_gethst_r.c +++ b/nscd/nscd_gethst_r.c @@ -135,6 +135,9 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type, return -1; } + /* No value found so far. */ + *result = NULL; + req.version = NSCD_VERSION; req.type = type; req.key_len = keylen; |