]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
table: add missing NULL initialization
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Jul 2019 14:30:32 +0000 (23:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Jul 2019 14:30:32 +0000 (23:30 +0900)
src/shared/format-table.c

index 9813f4ba886940622cad7b2a70162fc2609faf94..44937e1c9130d76ffe16b09ac95b1767eac84795 100644 (file)
@@ -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)) {