Ensure data is not used uninitialised.
authorJeremy Allison <jra@samba.org>
Tue, 26 Nov 2002 17:40:25 +0000 (17:40 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 26 Nov 2002 17:40:25 +0000 (17:40 +0000)
Jeremy.
(This used to be commit 3c2d396aa8d674970b2cc043fd32d2648fcd004e)

source3/libsmb/namecache.c

index 4304197a267a7211908e92a5e69d4853f9df6c36..724e0237d2660dc73076874e36288a361233519c 100644 (file)
@@ -161,7 +161,7 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list,
                     int *num_names)
 {
        TDB_DATA key, value;
-       struct nc_value *data;
+       struct nc_value *data = NULL;
        time_t now;
        int i;