vcl: fix build with older gcc 09/34609/2
authorFlorin Coras <fcoras@cisco.com>
Mon, 29 Nov 2021 16:12:27 +0000 (08:12 -0800)
committerDave Barach <openvpp@barachs.net>
Mon, 29 Nov 2021 17:50:53 +0000 (17:50 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic941065aa7d7c0002863a6391c8914089c438445

src/vcl/ldp.c

index 2bdbe89..73a5bc2 100644 (file)
@@ -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)
        {