summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/json.c b/src/shared/json.c
index 5d7d0dba80..69514160c2 100644
--- a/src/shared/json.c
+++ b/src/shared/json.c
@@ -723,7 +723,7 @@ static int json_parse_tokens(JsonVariant **tokens, size_t ntokens, JsonVariant *
size_t it = 0;
int r;
JsonVariant *e;
- _cleanup_jsonunref_ JsonVariant *p;
+ _cleanup_jsonunref_ JsonVariant *p = NULL;
assert(tokens);
assert(ntokens);