From: Zbigniew Jędrzejewski-Szmek Date: Tue, 23 Nov 2021 11:12:39 +0000 (+0100) Subject: shared/format-table: add cosmetic initialization X-Git-Tag: v250-rc1~179^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2d781ec8622722a30332ba0bb6dcd4c49eeb493;p=thirdparty%2Fsystemd.git shared/format-table: add cosmetic initialization p is unconditionally initialized below, but our coding style says that initialization should be added anyway. --- diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 08e0146a917..3fe426863d4 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)