aboutsummaryrefslogtreecommitdiff
path: root/lib/tran_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tran_pipe.c')
-rw-r--r--lib/tran_pipe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tran_pipe.c b/lib/tran_pipe.c
index 34dd075..dea2c3c 100644
--- a/lib/tran_pipe.c
+++ b/lib/tran_pipe.c
@@ -73,6 +73,10 @@ tran_pipe_send_iovec(int fd, uint16_t msg_id, bool is_reply,
ret = writev(fd, iovecs, nr_iovecs);
+ /* Quieten static analysis. */
+ iovecs[0].iov_base = NULL;
+ iovecs[0].iov_len = 0;
+
if (ret == -1) {
/* Treat a failed write due to EPIPE the same as a short write. */
if (errno == EPIPE) {