s3: smbd: Initialization cleanup.
authorJeremy Allison <jra@samba.org>
Wed, 22 Aug 2018 16:09:27 +0000 (09:09 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 11 Sep 2018 20:45:10 +0000 (22:45 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/filename.c

index 41c1710351ea4db2a76f002d51adf344e0cdf430..2071ddc58d6c5a9ef517d190ccc11506c50316c4 100644 (file)
@@ -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)) {