net/udp/udp_setsockopt.c: Remove a warning about an uninitialized variable.

This commit is contained in:
Gregory Nutt 2018-07-04 18:28:17 -06:00
parent e1f8b3ff3b
commit 30657b769f
1 changed files with 2 additions and 0 deletions

View File

@ -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
{