]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 1 Mar 2004 22:35:28 +0000 (22:35 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 1 Mar 2004 22:35:28 +0000 (22:35 +0000)
* nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization
of return value.
* nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.

ChangeLog
nscd/nscd_getgr_r.c
nscd/nscd_gethst_r.c

index b949394140f85ecdcfa77e41450113181db39045..5416539278c58655aaba08121058560af1e17bfa 100644 (file)
--- 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
index 50932668f427804a0fcc3c0f38eff6debe9b3507..f6b0b5c3b02b1160bfa2023f6bd359b3957a9b50 100644 (file)
@@ -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;
index 1089b967d08aef4c60a79db5856b3c6686e6f930..438217b1d6ba6b21c77840550a18799ac37ba4be 100644 (file)
@@ -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;