summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/signal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/signal.c b/src/signal.c
index 188876b8..7e53e83d 100644
--- a/src/signal.c
+++ b/src/signal.c
@@ -67,12 +67,10 @@ int osmo_signal_register_handler(unsigned int subsys,
{
struct signal_handler *sig_data;
- sig_data = talloc(tall_sigh_ctx, struct signal_handler);
+ sig_data = talloc_zero(tall_sigh_ctx, struct signal_handler);
if (!sig_data)
return -ENOMEM;
- memset(sig_data, 0, sizeof(*sig_data));
-
sig_data->subsys = subsys;
sig_data->data = data;
sig_data->cbfn = cbfn;