From 6c8ee02e178145cc2ae4e4fbf0a78a0852d6a7f3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 16 Aug 2011 12:30:58 +0200 Subject: s3: Use ZERO_STRUCT where appropriate Autobuild-User: Volker Lendecke Autobuild-Date: Tue Aug 16 13:59:55 CEST 2011 on sn-devel-104 --- source3/param/loadparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 94f9da9b23..b0c64c7fa3 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -4700,7 +4700,7 @@ static void init_globals(bool reinit_globals) * wipe out smb.conf options set with lp_set_cmdline(). The * apply_lp_set_cmdline() call puts these values back in the * table once the defaults are set */ - memset((void *)&Globals, '\0', sizeof(Globals)); + ZERO_STRUCT(Globals); for (i = 0; parm_table[i].label; i++) { if ((parm_table[i].type == P_STRING || -- cgit