summaryrefslogtreecommitdiff
path: root/source3/lib/util_hnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_hnd.c')
-rw-r--r--source3/lib/util_hnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_hnd.c b/source3/lib/util_hnd.c
index addedaec90..b1e695360f 100644
--- a/source3/lib/util_hnd.c
+++ b/source3/lib/util_hnd.c
@@ -114,7 +114,7 @@ BOOL open_lsa_policy_hnd(POLICY_HND *hnd)
return False;
}
- memset(p, 0, sizeof(*p));
+ ZERO_STRUCTP(p);
p->open = True;
p->pnum = i;
@@ -280,7 +280,7 @@ BOOL close_lsa_policy_hnd(POLICY_HND *hnd)
bitmap_clear(bmap, p->pnum);
- memset(p, 0, sizeof(*p));
+ ZERO_STRUCTP(p);
free(p);