]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Cleanup - namecache_store() initialize stack variables.
authorJeremy Allison <jra@samba.org>
Wed, 15 Jul 2020 20:31:38 +0000 (13:31 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 16 Jul 2020 06:52:36 +0000 (06:52 +0000)
Preparing for common out: exit.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/libsmb/namecache.c

index 76d411e87d11724d1c4bb7b2ece1b381436604d6..1127874c375361abc0a2bf8b2220dcae051cd359 100644 (file)
@@ -216,9 +216,10 @@ bool namecache_store(const char *name,
                        struct ip_service *ip_list)
 {
        time_t expiry;
-       char *key, *value_string;
+       char *key = NULL;
+       char *value_string = NULL;
        int i;
-       bool ret;
+       bool ret = false;
        TALLOC_CTX *frame = talloc_stackframe();
 
        if (name_type > 255) {