mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
net/udp/udp_setsockopt.c: Remove a warning about an uninitialized variable.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user