]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:torture: Initialize pointer with NULL
authorAndreas Schneider <asn@samba.org>
Tue, 16 Jul 2024 08:33:38 +0000 (10:33 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 18 Jul 2024 12:47:29 +0000 (12:47 +0000)
commit2e1ac4bbf5b5a52bda106841be2e2ce3a5e3880c
tree4a75f62c37ca17cfe44732b3a95c520173ada3a5
parentf124c2df928fc1eac8412303d894b714e05d1e1f
s4:torture: Initialize pointer with NULL

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/source4/torture/smb2/durable_open.c:1447: var_decl: Declaring variable ""tree2"" without initializer.
samba-4.20.0rc2/source4/torture/smb2/durable_open.c:1492: uninit_use_in_call: Using uninitialized value ""tree2"" when calling ""smb2_util_unlink"".
 1490|    }
 1491|
 1492|->  smb2_util_unlink(tree2, fname);
 1493|
 1494|    talloc_free(tree);"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/torture/smb2/durable_open.c