summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-05-20 23:25:48 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-05-20 23:26:02 -0400
commit925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7 (patch)
tree3329dd89d9837ea64ab47c18de55cde97744cf54 /src/shared
parent01906c76c1a6eafc0dccf83b672ff1f3ed3e3338 (diff)
json: avoid cleanup of unitialized variable
Diffstat (limited to 'src/shared')
-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);