(nscd_gethst_r): Add missing initialization of return value.
authordrepper <drepper>
Mon, 1 Mar 2004 22:34:27 +0000 (22:34 +0000)
committerdrepper <drepper>
Mon, 1 Mar 2004 22:34:27 +0000 (22:34 +0000)
nscd/nscd_gethst_r.c

index 1089b96..438217b 100644 (file)
@@ -135,6 +135,9 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type,
       return -1;
     }
 
       return -1;
     }
 
+  /* No value found so far.  */
+  *result = NULL;
+
   req.version = NSCD_VERSION;
   req.type = type;
   req.key_len = keylen;
   req.version = NSCD_VERSION;
   req.type = type;
   req.key_len = keylen;