s3-libsmb: Make sure the stat structure is initialized.
authorAndreas Schneider <asn@samba.org>
Thu, 30 Oct 2014 15:12:17 +0000 (16:12 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 31 Oct 2014 02:47:40 +0000 (03:47 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clirap.c

index 64e3767c1297dc4e53af3c25fc33d7b5611975f4..08f8ba2b6a9981afe110be3f9612c9de308beaf7 100644 (file)
@@ -1424,7 +1424,7 @@ NTSTATUS cli_qpathinfo3(struct cli_state *cli, const char *fname,
                        SMB_INO_T *ino)
 {
        NTSTATUS status = NT_STATUS_OK;
-       SMB_STRUCT_STAT st;
+       SMB_STRUCT_STAT st = { 0 };
        uint32_t attr;
        uint64_t pos;