json: avoid cleanup of unitialized variable

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-05-20 23:25:48 -04:00
parent 01906c76c1
commit 925fbb9f80

View file

@ -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);