Skip to content

Commit

Permalink
Fixed MI address_dump function
Browse files Browse the repository at this point in the history
  • Loading branch information
danpascu committed May 28, 2019
1 parent 149e69e commit 51719c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/permissions/mi.c
Expand Up @@ -95,7 +95,7 @@ mi_response_t *mi_address_dump(const mi_params_t *params,
return 0;

parts_arr = add_mi_array(resp_obj, MI_SSTR("Partitions"));
if (parts_arr)
if (!parts_arr)
goto error;

for (it=get_part_structs(); it; it = it->next) {
Expand Down

0 comments on commit 51719c7

Please sign in to comment.