]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: realign smb_fname_base initialisation in dptr_ReadDirName()
authorRalph Boehme <slow@samba.org>
Fri, 1 May 2020 14:55:58 +0000 (16:55 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:41 +0000 (19:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index 2cd659aab73c787f6a866e23018e8ec444db359e..ac557ac442bccd9bb86bbdd2ca15eaae8532d9fc 100644 (file)
@@ -490,7 +490,9 @@ static char *dptr_ReadDirName(TALLOC_CTX *ctx,
                return NULL;
 
        /* Create an smb_filename with stream_name == NULL. */
-       smb_fname_base = (struct smb_filename) { .base_name = pathreal };
+       smb_fname_base = (struct smb_filename) {
+               .base_name = pathreal,
+       };
 
        if (SMB_VFS_STAT(dptr->conn, &smb_fname_base) == 0) {
                *pst = smb_fname_base.st;