From 4b9ed896cf26942071af0bcd276663ab84b8cbad Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 15 Dec 2012 14:11:15 +0100 Subject: [PATCH] libubus: fix uninitialized variable warning Signed-off-by: Felix Fietkau --- libubus-req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libubus-req.c b/libubus-req.c index 4d0adb6..ec82979 100644 --- a/libubus-req.c +++ b/libubus-req.c @@ -392,7 +392,7 @@ static void ubus_process_notify_status(struct ubus_request *req, int id, struct struct blob_attr **tb; struct blob_attr *cur; int rem, idx = 1; - int ret; + int ret = 0; nreq = container_of(req, struct ubus_notify_request, req); nreq->pending &= ~(1 << id);