mirror of https://gitee.com/openkylin/libvirt.git
Coverity: Resolve a CHECKED_RETURN message
Recent changes to the module seemed to have caused Coverity to find a new issue regarding the failure to check the return from a sendmsg. The code doesn't seem to care about the return status, so just added an ignore_value to keep Coverity quiet.
This commit is contained in:
parent
ff436380bc
commit
b2e4ace220
|
@ -1003,7 +1003,7 @@ virLogOutputToJournald(virLogSourcePtr source,
|
||||||
|
|
||||||
mh.msg_controllen = cmsg->cmsg_len;
|
mh.msg_controllen = cmsg->cmsg_len;
|
||||||
|
|
||||||
sendmsg(journalfd, &mh, MSG_NOSIGNAL);
|
ignore_value(sendmsg(journalfd, &mh, MSG_NOSIGNAL));
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_LOG_CLOSE(buffd);
|
VIR_LOG_CLOSE(buffd);
|
||||||
|
|
Loading…
Reference in New Issue