From: Todd C. Miller Date: Wed, 11 Jan 2012 18:09:09 +0000 (-0500) Subject: The result of writev() is never checked so just cast to NULL. X-Git-Tag: SUDO_1_8_4~62^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa15fc7651074b58db35875f9d6cec0077c527b8;p=sudo The result of writev() is never checked so just cast to NULL. --- diff --git a/common/sudo_debug.c b/common/sudo_debug.c index ea38d2448..5eed4bffd 100644 --- a/common/sudo_debug.c +++ b/common/sudo_debug.c @@ -247,7 +247,6 @@ sudo_debug_write(const char *str, int len) { char *timestr; time_t now; - ssize_t n; struct iovec iov[5]; int iovcnt = 4; @@ -296,7 +295,7 @@ sudo_debug_write(const char *str, int len) iov[0].iov_len = 16; /* Write message in a single syscall */ - n = writev(sudo_debug_fd, iov, iovcnt); + (void) writev(sudo_debug_fd, iov, iovcnt); } void