net/udp/udp_setsockopt.c: Remove a warning about an uninitialized variable.
This commit is contained in:
parent
e1f8b3ff3b
commit
30657b769f
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue