From 41c78d1888b059db12c5116b23fc300c69c0e535 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 18 Oct 2020 22:43:24 +0200 Subject: [PATCH] libsmb: Use ZERO_STRUCTP Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/libsmb_stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3