diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-15 10:31:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:50 -0500 |
commit | d327eb01bdc5ae196ece3707510629d95a8857b4 (patch) | |
tree | 9c85af395eb50c1f2d297853d94e847d4babc991 | |
parent | da19be9a76447461857aa3bd6189a5a1bd7d78c2 (diff) | |
download | samba-d327eb01bdc5ae196ece3707510629d95a8857b4.tar.gz samba-d327eb01bdc5ae196ece3707510629d95a8857b4.tar.bz2 samba-d327eb01bdc5ae196ece3707510629d95a8857b4.zip |
r4756: a slight tidy up in the events code
(This used to be commit d2f76c3671df0b0232982e2fbfd5c049c9fb674f)
-rw-r--r-- | source4/lib/events.c | 5 |
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; |