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

This commit is contained in:
bobcanthelpyou 2018-11-25 13:44:51 +01:00
parent 1a5f1fc706
commit e9e8a44d51

View File

@ -352,10 +352,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));