summaryrefslogtreecommitdiff
path: root/src/shared/format-table.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-29 23:30:32 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-29 23:30:32 +0900
commit57894dc98977dbe33734d5b7319bd7a89ce809d1 (patch)
tree1ac474d0f5f97896242dd128978d4f9709bacd88 /src/shared/format-table.c
parente74294c30aca770c08938aa34ab073e13d569c39 (diff)
downloadsystemd-57894dc98977dbe33734d5b7319bd7a89ce809d1.tar.gz
table: add missing NULL initialization
Diffstat (limited to 'src/shared/format-table.c')
-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 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)) {