summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-23 12:12:39 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-23 16:20:14 +0100
commitb2d781ec8622722a30332ba0bb6dcd4c49eeb493 (patch)
treea8829dd82e31826844fa66fa4b3f55a2c8afbf3e
parent64ea42e975cb229f310a4b057b28688ec4409e97 (diff)
downloadsystemd-b2d781ec8622722a30332ba0bb6dcd4c49eeb493.tar.gz
shared/format-table: add cosmetic initialization
p is unconditionally initialized below, but our coding style says that initialization should be added anyway.
-rw-r--r--src/shared/format-table.c2
1 files changed, 1 insertions, 1 deletions
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)