aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd_gethst_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-01 22:35:28 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-01 22:35:28 +0000
commit16aac66378ca2ceccf03335e8880f8a326d4b00d (patch)
treea915723ca2c72539fd4014c11f7956f0c5a7d695 /nscd/nscd_gethst_r.c
parentc706ad8896b6729584fb63f3a2bac172b13d1125 (diff)
downloadglibc-16aac66378ca2ceccf03335e8880f8a326d4b00d.zip
glibc-16aac66378ca2ceccf03335e8880f8a326d4b00d.tar.gz
glibc-16aac66378ca2ceccf03335e8880f8a326d4b00d.tar.bz2
Update.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization of return value. * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
Diffstat (limited to 'nscd/nscd_gethst_r.c')
-rw-r--r--nscd/nscd_gethst_r.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c
index 1089b96..438217b 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;