mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
core/manager: silence false-positive warning by coverity
Follow-up for 406f177501.
Closes CID#1564897.
This commit is contained in:
committed by
Luca Boccassi
parent
4055529003
commit
b66948bbf2
@@ -5067,7 +5067,7 @@ static int manager_dispatch_pidref_transport_fd(sd_event_source *source, int fd,
|
||||
_cleanup_close_ int child_pidfd = -EBADF, parent_pidfd = -EBADF;
|
||||
struct ucred *ucred = NULL;
|
||||
CMSG_BUFFER_TYPE(CMSG_SPACE(sizeof(struct ucred)) + CMSG_SPACE(sizeof(int)) * 2) control;
|
||||
pid_t child_pid;
|
||||
pid_t child_pid = 0; /* silence false-positive warning by coverity */
|
||||
struct msghdr msghdr = {
|
||||
.msg_iov = &IOVEC_MAKE(&child_pid, sizeof(child_pid)),
|
||||
.msg_iovlen = 1,
|
||||
|
||||
Reference in New Issue
Block a user