summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-16 12:30:58 +0200
committerVolker Lendecke <vlendec@samba.org>2011-08-16 13:59:55 +0200
commit6c8ee02e178145cc2ae4e4fbf0a78a0852d6a7f3 (patch)
tree45d1199d35ddd4c049821fa587c75f3fdde6abc0
parentee720fc19cebf9108711429dfe25ccaf192e2c7e (diff)
downloadsamba-6c8ee02e178145cc2ae4e4fbf0a78a0852d6a7f3.tar.gz
samba-6c8ee02e178145cc2ae4e4fbf0a78a0852d6a7f3.tar.bz2
samba-6c8ee02e178145cc2ae4e4fbf0a78a0852d6a7f3.zip
s3: Use ZERO_STRUCT where appropriate
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 16 13:59:55 CEST 2011 on sn-devel-104
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
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 ||