summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/pysmbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index 612304c4e5..8a5bde1090 100644
--- a/source3/smbd/pysmbd.c
+++ b/source3/smbd/pysmbd.c
@@ -101,7 +101,7 @@ static NTSTATUS set_nt_acl_no_snum(const char *fname,
smbd_vfs_init(conn);
- fsp = talloc(frame, struct files_struct);
+ fsp = talloc_zero(frame, struct files_struct);
if (fsp == NULL) {
TALLOC_FREE(frame);
return NT_STATUS_NO_MEMORY;