From: Florin Coras Date: Mon, 29 Nov 2021 16:12:27 +0000 (-0800) Subject: vcl: fix build with older gcc X-Git-Tag: v22.06-rc0~172 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=cba1c2258b0e5f2189baf5ccd90d6d61b4644ece;p=vpp.git vcl: fix build with older gcc Type: fix Signed-off-by: Florin Coras Change-Id: Ic941065aa7d7c0002863a6391c8914089c438445 --- 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) {