summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-03-27 14:30:20 +0200
committerRalph Boehme <slow@samba.org>2018-07-11 23:04:20 +0200
commit601fd81ef274ee42121d71d2167a62fdcb759409 (patch)
treec281563d98df0d99bb215e8a647d84653e3f3067 /lib/tevent
parent8a947939e11cacde7c4b4dce03bf12348642ee7f (diff)
downloadsamba-601fd81ef274ee42121d71d2167a62fdcb759409.tar.gz
tevent: use talloc_zero() in tevent_signal.c
This might not be strictly required, but it might avoid problems in future... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/tevent_signal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c
index 6bb69d77d7a..73b8de798f6 100644
--- a/lib/tevent/tevent_signal.c
+++ b/lib/tevent/tevent_signal.c
@@ -255,10 +255,10 @@ struct tevent_signal *tevent_common_add_signal(struct tevent_context *ev,
}
}
- se = talloc(mem_ctx?mem_ctx:ev, struct tevent_signal);
+ se = talloc_zero(mem_ctx?mem_ctx:ev, struct tevent_signal);
if (se == NULL) return NULL;
- sl = talloc(se, struct tevent_common_signal_list);
+ sl = talloc_zero(se, struct tevent_common_signal_list);
if (!sl) {
talloc_free(se);
return NULL;
@@ -303,7 +303,7 @@ struct tevent_signal *tevent_common_add_signal(struct tevent_context *ev,
}
}
#endif
- sig_state->oldact[signum] = talloc(sig_state, struct sigaction);
+ sig_state->oldact[signum] = talloc_zero(sig_state, struct sigaction);
if (sig_state->oldact[signum] == NULL) {
talloc_free(se);
return NULL;