libubus: fix uninitialized variable warning
authorFelix Fietkau <nbd@openwrt.org>
Sat, 15 Dec 2012 13:11:15 +0000 (14:11 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 15 Dec 2012 13:11:15 +0000 (14:11 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-req.c

index 4d0adb653facb0136b5e262af4439dba1048c0a4..ec8297938403a776190ce7ea4d54dd35430a0156 100644 (file)
@@ -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);