From: Jeremy Allison Date: Wed, 22 Aug 2018 16:09:27 +0000 (-0700) Subject: s3: smbd: Initialization cleanup. X-Git-Tag: tdb-1.3.17~1649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204e054b3ba9c452fb99a97bb5788ca10e2ce5a8;p=thirdparty%2Fsamba.git s3: smbd: Initialization cleanup. Signed-off-by: Jeremy Allison Reviewed-by: Michael Adam --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 41c1710351e..2071ddc58d6 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -164,13 +164,12 @@ static NTSTATUS check_parent_exists(TALLOC_CTX *ctx, char **pp_dirpath, char **pp_start) { - struct smb_filename parent_fname; + struct smb_filename parent_fname = {0}; const char *last_component = NULL; NTSTATUS status; int ret; bool parent_fname_has_wild = false; - ZERO_STRUCT(parent_fname); if (!parent_dirname(ctx, smb_fname->base_name, &parent_fname.base_name, &last_component)) {