From fe819f569a7ebcde0a0d0d7c091c742579b28b55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 9 Jul 2021 13:17:16 +0200 Subject: [PATCH] shared/format-table: fix invalid free Coverity CID#1458108. --- src/shared/format-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 1c28fa73fa7..b298019d7cf 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -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"; -- 2.47.3