From a3226f7b9dc129d277c2e3c5a1158fdd3972dd58 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 20 Mar 2019 20:41:54 +0700 Subject: src/signal.c: cosmetic: use talloc_zero() Change-Id: I55c6249b0c4c82d5a181001e945ff2eca6e9ca36 --- src/signal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3