Skip to content

Commit

Permalink
dialog: fix bad MI printing of dialog values in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Mar 10, 2023
1 parent 543a40c commit 56fa712
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/dialog/dlg_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,12 @@ static inline int internal_mi_print_dlg(mi_item_t *dialog_obj,
p[j++] = dv->val.s.s[i];
}
}

values_item = add_mi_object(values_arr, NULL, 0);
if (!values_item)
goto error;
if (add_mi_string(values_item,dv->name.s,dv->name.len,p,j) < 0)
goto error;
} else {
values_item = add_mi_object(values_arr, NULL, 0);
if (!values_item)
Expand All @@ -1511,12 +1517,6 @@ static inline int internal_mi_print_dlg(mi_item_t *dialog_obj,
dv->val.n) < 0)
goto error;
}

values_item = add_mi_object(values_arr, NULL, 0);
if (!values_item)
goto error;
if (add_mi_string(values_item,dv->name.s,dv->name.len,p,j) < 0)
goto error;
}
}

Expand Down

0 comments on commit 56fa712

Please sign in to comment.