From 6ed53d4967465f57cafa0b465744b30eec40a34e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 Feb 2015 11:08:30 +0000 Subject: [PATCH] smbd: ZERO_STRUCT -> struct assignment Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 16ce0490a32..aa81a38b362 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1138,9 +1138,9 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, talloc_get_size(dname)); /* Create smb_fname with NULL stream_name. */ - ZERO_STRUCT(smb_fname); - smb_fname.base_name = pathreal; - smb_fname.st = sbuf; + smb_fname = (struct smb_filename) { + .base_name = pathreal, .st = sbuf + }; ok = mode_fn(ctx, private_data, &smb_fname, &mode); if (!ok) {