mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
Fix use of unitialized variable in error path
CID 1408478.
This commit is contained in:
@@ -1340,9 +1340,8 @@ int safe_fork_full(
|
||||
}
|
||||
|
||||
} else if (flags & FORK_STDOUT_TO_STDERR) {
|
||||
|
||||
if (dup2(STDERR_FILENO, STDOUT_FILENO) < 0) {
|
||||
log_full_errno(prio, r, "Failed to connect stdout to stderr: %m");
|
||||
log_full_errno(prio, errno, "Failed to connect stdout to stderr: %m");
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user