diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-30 02:03:05 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-30 02:03:51 +0100 |
commit | d27e9b0f83055a8861c9e2d2a759b7be7157a951 (patch) | |
tree | 27b812eb4dd4830b07a93130067de00e1f746acd /src/network/networkd-json.c | |
parent | json: make JSON_BUILD_PAIR_IN_ADDR_NON_NULL or friends handle NULL gracefully (diff) | |
download | systemd-d27e9b0f83055a8861c9e2d2a759b7be7157a951.tar.xz systemd-d27e9b0f83055a8861c9e2d2a759b7be7157a951.zip |
network: json: add missing initialization
Fixes CID#1466513.
Diffstat (limited to 'src/network/networkd-json.c')
-rw-r--r-- | src/network/networkd-json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-json.c b/src/network/networkd-json.c index 894badd6f9..aa0c606543 100644 --- a/src/network/networkd-json.c +++ b/src/network/networkd-json.c @@ -697,7 +697,7 @@ static int server_build_json_one_string(const char *str, NetworkConfigSource s, } static int ntp_build_json(Link *link, JsonVariant **ret) { - JsonVariant **elements; + JsonVariant **elements = NULL; size_t n = 0; char **p; int r; |