cli: fix a crash (due to freeing static string)

This commit is contained in:
Jiří Klimeš
2012-01-06 14:47:34 +01:00
parent 7e4b14d5ae
commit a2e86dfb7d

View File

@@ -362,7 +362,7 @@ print_fields (const NmcPrintFields fields, const NmcOutputField field_values[])
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);
}