From: Volker Lendecke Date: Sun, 18 Oct 2020 20:43:24 +0000 (+0200) Subject: libsmb: Use ZERO_STRUCTP X-Git-Tag: talloc-2.3.2~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41c78d1888b059db12c5116b23fc300c69c0e535;p=thirdparty%2Fsamba.git libsmb: Use ZERO_STRUCTP Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index de3ca530cd0..136f3dddcc9 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -414,7 +414,7 @@ SMBC_fstatvfs_ctx(SMBCCTX *context, } /* Initialize all fields (at least until we actually use them) */ - memset(st, 0, sizeof(*st)); + ZERO_STRUCTP(st); /* * The state of each flag is such that the same bits are unset as