mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
json: avoid cleanup of unitialized variable
This commit is contained in:
parent
01906c76c1
commit
925fbb9f80
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue