r4756: a slight tidy up in the events code
authorAndrew Tridgell <tridge@samba.org>
Sat, 15 Jan 2005 10:31:33 +0000 (10:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:50 +0000 (13:08 -0500)
source/lib/events.c

index 9f28100a268ea12a1f7cc836a7e6bd1305151324..54ec4ef9277b50dca2b81424701f83cf9d3fb6ce 100644 (file)
@@ -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;