git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae7748
)
r4756: a slight tidy up in the events code
author
Andrew Tridgell
<tridge@samba.org>
Sat, 15 Jan 2005 10:31:33 +0000
(10:31 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:08:50 +0000
(13:08 -0500)
source/lib/events.c
patch
|
blob
|
history
diff --git
a/source/lib/events.c
b/source/lib/events.c
index 9f28100a268ea12a1f7cc836a7e6bd1305151324..54ec4ef9277b50dca2b81424701f83cf9d3fb6ce 100644
(file)
--- a/
source/lib/events.c
+++ b/
source/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;