Skip to content

Commit

Permalink
dialog: Fix bad test in prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Nov 16, 2023
1 parent 2bc5084 commit 68ad0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ static inline int internal_mi_print_dlg(mi_item_t *dialog_obj,
/* print dlg values -> iterate the list */
for( dv=dlg->vals ; dv ; dv=dv->next) {
/* escape non-printable chars */
if (!pkg_str_extend(&dlg_val_buf, 4 * dv->val.len + 1)) {
if (pkg_str_extend(&dlg_val_buf, 4 * dv->val.len + 1) != 0) {
LM_ERR("not enough mem to allocate: %d\n", 4 * dv->val.len + 1);
continue;
}
Expand Down

0 comments on commit 68ad0e0

Please sign in to comment.