aboutsummaryrefslogtreecommitdiff
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
parentunits: conditionalize audit multicast socket on CAP_AUDIT_READ (diff)
downloadsystemd-925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7.tar.gz
systemd-925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7.tar.bz2
systemd-925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7.zip
json: avoid cleanup of unitialized variable
-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 5d7d0dba8..69514160c 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);