libubus: fix uninitialized variable warning

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2012-12-15 14:11:15 +01:00
parent 54c78ed905
commit 4b9ed896cf

View 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);