[systemd-commits] src/shared
Zbigniew Jędrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Wed May 20 20:26:16 PDT 2015
src/shared/json.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 925fbb9f80a8263216ee9f2fe9ab5c8d02651bb7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed May 20 23:25:48 2015 -0400
json: avoid cleanup of unitialized variable
diff --git a/src/shared/json.c b/src/shared/json.c
index 5d7d0db..6951416 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);
More information about the systemd-commits
mailing list