s3-libsmb: Make sure that finfo is initialized.
authorAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 08:33:47 +0000 (10:33 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 10:56:13 +0000 (12:56 +0200)
Found by clang-analyzer.

source3/libsmb/clilist.c

index 83b9eb1301fd9483bf5e5937fae72c159fc2080e..93f67c7e63df89530eaaca5e36ee1f207dc2e7f1 100644 (file)
@@ -260,6 +260,8 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
                return -1;
        }
 
+       ZERO_STRUCT(finfo);
+
        while (ff_eos == 0) {
                size_t nlen = 2*(strlen(mask)+1);