From f3fa17d0f7a370086416b4878d7cbc94864cbeb7 Mon Sep 17 00:00:00 2001 From: bobcanthelpyou Date: Sun, 25 Nov 2018 13:44:51 +0100 Subject: [PATCH] gluon-mesh-babel: Variable 'uret' is reassigned a value before the old one has been used. --- package/gluon-mesh-babel/src/respondd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/gluon-mesh-babel/src/respondd.c b/package/gluon-mesh-babel/src/respondd.c index 7caecb47..29f20ccf 100644 --- a/package/gluon-mesh-babel/src/respondd.c +++ b/package/gluon-mesh-babel/src/respondd.c @@ -336,10 +336,9 @@ static struct json_object * get_mesh_ifs() { goto end; } - int uret = -2; blob_buf_init(&b, 0); ubus_lookup_id(ubus_ctx, "network.interface", &id); - uret = ubus_invoke(ubus_ctx, id, "dump", b.head, receive_call_result_data, &ret, UBUS_TIMEOUT * 1000); + int uret = ubus_invoke(ubus_ctx, id, "dump", b.head, receive_call_result_data, &ret, UBUS_TIMEOUT * 1000); if (uret > 0) fprintf(stderr, "ubus command failed: %s\n", ubus_strerror(uret));