mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 12:57:50 +00:00
The result of writev() is never checked so just cast to NULL.
This commit is contained in:
parent
8fd2b8b934
commit
fa15fc7651
@ -247,7 +247,6 @@ sudo_debug_write(const char *str, int len)
|
|||||||
{
|
{
|
||||||
char *timestr;
|
char *timestr;
|
||||||
time_t now;
|
time_t now;
|
||||||
ssize_t n;
|
|
||||||
struct iovec iov[5];
|
struct iovec iov[5];
|
||||||
int iovcnt = 4;
|
int iovcnt = 4;
|
||||||
|
|
||||||
@ -296,7 +295,7 @@ sudo_debug_write(const char *str, int len)
|
|||||||
iov[0].iov_len = 16;
|
iov[0].iov_len = 16;
|
||||||
|
|
||||||
/* Write message in a single syscall */
|
/* Write message in a single syscall */
|
||||||
n = writev(sudo_debug_fd, iov, iovcnt);
|
(void) writev(sudo_debug_fd, iov, iovcnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user