cli: fix a crash (due to freeing static string)
This commit is contained in:
@@ -362,7 +362,7 @@ print_fields (const NmcPrintFields fields, const NmcOutputField field_values[])
|
|||||||
table_width += field_values[idx].width + width1 - width2 + 1;
|
table_width += field_values[idx].width + width1 - width2 + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value_is_array && field_values[idx].value)
|
if (value_is_array && field_values[idx].value && !field_values)
|
||||||
g_free (value);
|
g_free (value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user