From b2d781ec8622722a30332ba0bb6dcd4c49eeb493 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 23 Nov 2021 12:12:39 +0100 Subject: [PATCH] shared/format-table: add cosmetic initialization p is unconditionally initialized below, but our coding style says that initialization should be added anyway. --- 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 08e0146a91..3fe426863d 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -1640,7 +1640,7 @@ static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercas } case TABLE_UINT64_HEX: { - _cleanup_free_ char *p; + _cleanup_free_ char *p = NULL; p = new(char, 16 + 1); if (!p) -- 2.25.1