Author: tridge
Date: 2005-01-15 10:31:33 +0000 (Sat, 15 Jan 2005)
New Revision: 4756

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4756

Log:
a slight tidy up in the events code

Modified:
   branches/SAMBA_4_0/source/lib/events.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/events.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events.c      2005-01-15 10:30:58 UTC (rev 
4755)
+++ branches/SAMBA_4_0/source/lib/events.c      2005-01-15 10:31:33 UTC (rev 
4756)
@@ -79,12 +79,9 @@
 {
        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;

Reply via email to