]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Don't talloc_zero where we assign the struct a line below
authorVolker Lendecke <vl@samba.org>
Thu, 27 Jun 2024 14:46:16 +0000 (16:46 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 4 Jul 2024 16:31:39 +0000 (16:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jul  4 16:31:39 UTC 2024 on atb-devel-224

source3/smbd/files.c

index 0ab8aa80f20ce6d7269b770bd7d3ea21b28136cc..d7062cd20164b90612511f800cbb2d372fb1de0b 100644 (file)
@@ -742,7 +742,7 @@ NTSTATUS read_symlink_reparse(TALLOC_CTX *mem_ctx,
        struct symlink_reparse_struct *lnk = NULL;
        NTSTATUS status;
 
-       reparse = talloc_zero(mem_ctx, struct reparse_data_buffer);
+       reparse = talloc(mem_ctx, struct reparse_data_buffer);
        if (reparse == NULL) {
                goto nomem;
        }