From 09c00923bafe1eb78ec45f33a5c3076dff44787a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 Feb 2015 11:07:32 +0000 Subject: [PATCH] smbd: ZERO_STRUCT -> struct assignment Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 488391602f1..16ce0490a32 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; -- 2.11.4.GIT