From e9a6552da3497537328b44ed3a4abfe79996d85f Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 1 May 2020 16:55:58 +0200 Subject: [PATCH] smbd: realign smb_fname_base initialisation in dptr_ReadDirName() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 2cd659aab73..ac557ac442b 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -490,7 +490,9 @@ static char *dptr_ReadDirName(TALLOC_CTX *ctx, return NULL; /* Create an smb_filename with stream_name == NULL. */ - smb_fname_base = (struct smb_filename) { .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.47.3