diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-05-21 05:25:48 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-05-21 05:26:02 +0200 |
commit | 925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7 (patch) | |
tree | 3329dd89d9837ea64ab47c18de55cde97744cf54 /src/shared/json.c | |
parent | units: conditionalize audit multicast socket on CAP_AUDIT_READ (diff) | |
download | systemd-925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7.tar.xz systemd-925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7.zip |
json: avoid cleanup of unitialized variable
Diffstat (limited to 'src/shared/json.c')
-rw-r--r-- | src/shared/json.c | 2 |
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); |