summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-02-23 11:07:32 +0000
committerJeremy Allison <jra@samba.org>2015-02-26 18:51:10 +0100
commit09c00923bafe1eb78ec45f33a5c3076dff44787a (patch)
treebf90044a74defb58419c3b95b977f8f700aaa647 /source3
parent9e810b2fbe27b26c1ae5859b08d3159882c0f5bb (diff)
smbd: ZERO_STRUCT -> struct assignment
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 488391602f..16ce0490a3 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -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;