From: Volker Lendecke Date: Wed, 22 Oct 2025 09:13:18 +0000 (+0200) Subject: smbd: Replace a ZERO_STRUCT with a direct struct initialization X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b99258065e408a03c9e46ee69af7079a82067224;p=thirdparty%2Fsamba.git smbd: Replace a ZERO_STRUCT with a direct struct initialization Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 328df11d6af..0faa3c87692 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1323,7 +1323,7 @@ uint32_t vfs_get_fs_capabilities(struct connection_struct *conn, loadparm_s3_global_substitution(); uint32_t caps = FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES; struct smb_filename *smb_fname_cpath = NULL; - struct vfs_statvfs_struct statbuf; + struct vfs_statvfs_struct statbuf = {}; int ret; smb_fname_cpath = synthetic_smb_fname(talloc_tos(), @@ -1336,7 +1336,6 @@ uint32_t vfs_get_fs_capabilities(struct connection_struct *conn, return caps; } - ZERO_STRUCT(statbuf); ret = SMB_VFS_STATVFS(conn, smb_fname_cpath, &statbuf); if (ret == 0) { caps = statbuf.FsCapabilities;