From d7352bfa112ba3b01c3085d5bb78e29084cb455d Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Thu, 8 Aug 2024 14:25:47 +0200 Subject: [PATCH] bevent: omit empty initializer values --- src/bevent.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bevent.c b/src/bevent.c index 1db4e11a6..27b041b80 100644 --- a/src/bevent.c +++ b/src/bevent.c @@ -724,8 +724,7 @@ void ua_event(struct ua *ua, enum ua_event ev, struct call *call, warning("Used deprecated ua_event() for %s. " "Use one of event_xxx_emit() instead!\n", uag_event_str(ev)); - struct bevent event = {.ev = ev, .txt = buf, .err = 0, .stop = false, - .u = { 0 } }; + struct bevent event = {.ev = ev, .txt = buf}; if (bevent_class(ev) == BEVENT_CLASS_CALL) event.u.call = call; @@ -781,9 +780,7 @@ void module_event(const char *module, const char *event, struct ua *ua, eh->h(ua, UA_EVENT_MODULE, call, buf, eh->arg); } - struct bevent bevent = {.ev = UA_EVENT_MODULE, - .txt = buf, .err = 0, .stop = false, - .u = { 0 } }; + struct bevent bevent = {.ev = UA_EVENT_MODULE, .txt = buf}; if (call) bevent.u.call = call;