This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Vadim Yanitskiy gerrit-no-reply at lists.osmocom.orgVadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13342 Change subject: src/signal.c: cosmetic: use talloc_zero() ...................................................................... src/signal.c: cosmetic: use talloc_zero() Change-Id: I55c6249b0c4c82d5a181001e945ff2eca6e9ca36 --- M src/signal.c 1 file changed, 1 insertion(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/42/13342/1 diff --git a/src/signal.c b/src/signal.c index 188876b..7e53e83 100644 --- a/src/signal.c +++ b/src/signal.c @@ -67,12 +67,10 @@ { 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; -- To view, visit https://gerrit.osmocom.org/13342 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I55c6249b0c4c82d5a181001e945ff2eca6e9ca36 Gerrit-Change-Number: 13342 Gerrit-PatchSet: 1 Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190320/f1f27ca2/attachment.htm>