diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 9813f4ba88..44937e1c91 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -1339,7 +1339,7 @@ static const char *table_data_format(TableData *d) { } case TABLE_IFINDEX: { - _cleanup_free_ char *p; + _cleanup_free_ char *p = NULL; char name[IF_NAMESIZE + 1]; if (format_ifname(d->ifindex, name)) {