smbd: ZERO_STRUCT -> struct assignment
authorVolker Lendecke <vl@samba.org>
Mon, 23 Feb 2015 11:07:32 +0000 (11:07 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Feb 2015 17:51:10 +0000 (18:51 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index 488391602f1d93a215a4ee987a7e743b5b3f1647..16ce0490a32036fe9d3d9fd1ff76da06b49f740a 100644 (file)
@@ -771,8 +771,7 @@ static char *dptr_ReadDirName(TALLOC_CTX *ctx,
                return NULL;
 
        /* Create an smb_filename with stream_name == NULL. */
-       ZERO_STRUCT(smb_fname_base);
-       smb_fname_base.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;