1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00

r4756: a slight tidy up in the events code

This commit is contained in:
Andrew Tridgell 2005-01-15 10:31:33 +00:00 committed by Gerald (Jerry) Carter
parent cae7748d67
commit d2f76c3671

View 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;