From: Felix Fietkau Date: Mon, 8 Nov 2021 21:12:05 +0000 (+0100) Subject: ubus: fix crash caused by missing static keyword X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b56b112e62e2f0534ee341100a48b9becdc318d8;p=project%2Fqosify.git ubus: fix crash caused by missing static keyword Signed-off-by: Felix Fietkau --- 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 };