[PATCH 2/4] s3-libsmb: Make sure the stat structure is initialized.

Andreas Schneider asn at samba.org
Thu Oct 30 09:12:17 MDT 2014


Signed-off-by: Andreas Schneider <asn at samba.org>
---
 source3/libsmb/clirap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c
index 64e3767..08f8ba2 100644
--- a/source3/libsmb/clirap.c
+++ b/source3/libsmb/clirap.c
@@ -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;
 
-- 
2.1.2




More information about the samba-technical mailing list