aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-11-29 08:12:27 -0800
committerDave Barach <openvpp@barachs.net>2021-11-29 17:50:53 +0000
commitcba1c2258b0e5f2189baf5ccd90d6d61b4644ece (patch)
tree50f8537a6b7774a6adea519903692796a6960654 /src
parent02cc719d98b646f3027615430ad74cca53a1fa2d (diff)
vcl: fix build with older gcc
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ic941065aa7d7c0002863a6391c8914089c438445
Diffstat (limited to 'src')
-rw-r--r--src/vcl/ldp.c2
1 files changed, 1 insertions, 1 deletions
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)
{