mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
journald: do not free uninitialized pointer in error path
This commit is contained in:
parent
2adae5ac5d
commit
ff82c36c79
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user