summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-json.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-30 02:03:05 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-30 02:03:51 +0100
commitd27e9b0f83055a8861c9e2d2a759b7be7157a951 (patch)
tree27b812eb4dd4830b07a93130067de00e1f746acd /src/network/networkd-json.c
parentjson: make JSON_BUILD_PAIR_IN_ADDR_NON_NULL or friends handle NULL gracefully (diff)
downloadsystemd-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.c2
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;