From cba1c2258b0e5f2189baf5ccd90d6d61b4644ece Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 29 Nov 2021 08:12:27 -0800 Subject: [PATCH] vcl: fix build with older gcc Type: fix Signed-off-by: Florin Coras Change-Id: Ic941065aa7d7c0002863a6391c8914089c438445 --- src/vcl/ldp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c index 2bdbe892d86..73a5bc20cb4 100644 --- a/src/vcl/ldp.c +++ b/src/vcl/ldp.c @@ -1669,7 +1669,7 @@ sendmsg (int fd, const struct msghdr * msg, int flags) { struct iovec *iov = msg->msg_iov; ssize_t total = 0; - int i, rv; + int i, rv = 0; for (i = 0; i < msg->msg_iovlen; ++i) { -- 2.16.6