From: Zbigniew Jędrzejewski-Szmek Date: Tue, 12 Jan 2016 22:42:52 +0000 (-0500) Subject: journald: do not free uninitialized pointer in error path X-Git-Tag: v229~127^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff82c36c792a23a03994af2ae40cbd441e128bb4;p=thirdparty%2Fsystemd.git journald: do not free uninitialized pointer in error path --- diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index a8a9b720802..cfcc2c43020 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -1330,7 +1330,7 @@ static int server_parse_proc_cmdline(Server *s) { p = line; for(;;) { - _cleanup_free_ char *word; + _cleanup_free_ char *word = NULL; r = extract_first_word(&p, &word, NULL, 0); if (r < 0)