1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: ZERO_STRUCT -> struct assignment

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2015-02-23 11:08:30 +00:00 committed by Jeremy Allison
parent 09c00923ba
commit 6ed53d4967

View File

@ -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) {