summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-03-20 20:41:54 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-03-20 20:42:06 +0700
commita3226f7b9dc129d277c2e3c5a1158fdd3972dd58 (patch)
tree3d7e4675b1a9c53f41b99013a9b2085ea5edbfd5 /src
parentfa90cfd8d296503189d3075b8f1bf633204ddaa0 (diff)
src/signal.c: cosmetic: use talloc_zero()
Change-Id: I55c6249b0c4c82d5a181001e945ff2eca6e9ca36
Diffstat (limited to 'src')
-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;