Skip to content
Snippets Groups Projects
Commit f3fa17d0 authored by bobcanthelpyou's avatar bobcanthelpyou Committed by Christof Schulze
Browse files

gluon-mesh-babel: Variable 'uret' is reassigned a value before the old one has been used.

parent 62f06c1b
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment