shared/format-table: fix invalid free

Coverity CID#1458108.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-07-09 13:17:16 +02:00
parent d0e18bb4b0
commit fe819f569a

View file

@ -1763,7 +1763,7 @@ static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercas
}
case TABLE_MODE: {
_cleanup_free_ char *p;
_cleanup_free_ char *p = NULL;
if (d->mode == MODE_INVALID)
return "n/a";