From b56b112e62e2f0534ee341100a48b9becdc318d8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 8 Nov 2021 22:12:05 +0100 Subject: [PATCH] ubus: fix crash caused by missing static keyword Signed-off-by: Felix Fietkau --- ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubus.c b/ubus.c index 088fb14..d9b03cf 100644 --- a/ubus.c +++ b/ubus.c @@ -397,7 +397,7 @@ qosify_ubus_event_cb(struct ubus_context *ctx, struct ubus_event_handler *ev, static void ubus_connect_handler(struct ubus_context *ctx) { - struct ubus_event_handler ev = { + static struct ubus_event_handler ev = { .cb = qosify_ubus_event_cb }; -- 2.30.2