From 30657b769fb76b82fc9acc2dc54e2cba7d7a463e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 4 Jul 2018 18:28:17 -0600 Subject: [PATCH] net/udp/udp_setsockopt.c: Remove a warning about an uninitialized variable. --- net/udp/udp_setsockopt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/udp/udp_setsockopt.c b/net/udp/udp_setsockopt.c index 8303bc304e..2a68172094 100644 --- a/net/udp/udp_setsockopt.c +++ b/net/udp/udp_setsockopt.c @@ -133,6 +133,7 @@ int udp_setsockopt(FAR struct socket *psock, int option, (value_len > 0 && ((FAR char *)value)[0] == 0)) { conn->boundto = 0; /* This interface is no longer bound */ + ret = OK; } else { @@ -145,6 +146,7 @@ int udp_setsockopt(FAR struct socket *psock, int option, { DEBUGASSERT(ifindex > 0 && ifindex <= MAX_IFINDEX); conn->boundto = ifindex; + ret = OK; } else {