diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-03-20 20:41:54 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-03-20 20:42:06 +0700 |
commit | a3226f7b9dc129d277c2e3c5a1158fdd3972dd58 (patch) | |
tree | 3d7e4675b1a9c53f41b99013a9b2085ea5edbfd5 /src | |
parent | fa90cfd8d296503189d3075b8f1bf633204ddaa0 (diff) |
src/signal.c: cosmetic: use talloc_zero()
Change-Id: I55c6249b0c4c82d5a181001e945ff2eca6e9ca36
Diffstat (limited to 'src')
-rw-r--r-- | src/signal.c | 4 |
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; |