summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/events.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c
index 9f28100a26..54ec4ef927 100644
--- a/source4/lib/events.c
+++ b/source4/lib/events.c
@@ -79,12 +79,9 @@ struct event_context *event_context_init(TALLOC_CTX *mem_ctx)
{
struct event_context *ev;
- ev = talloc_p(mem_ctx, struct event_context);
+ ev = talloc_zero(mem_ctx, struct event_context);
if (!ev) return NULL;
- /* start off with no events */
- ZERO_STRUCTP(ev);
-
ev->events = talloc_new(ev);
return ev;