journald: do not free uninitialized pointer in error path

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-01-12 17:42:52 -05:00
parent 2adae5ac5d
commit ff82c36c79

View file

@ -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)