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:
parent
cae7748d67
commit
d2f76c3671
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user