gluon-mesh-babel: Variable 'uret' is reassigned a value before the old one has been used.
This commit is contained in:
parent
62f06c1b16
commit
f3fa17d0f7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user