Fix error: variable 'buflen' is uninitialized when used here
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ffda739704
commit
19138560f4
|
@ -121,7 +121,7 @@ void sixlowpan_icmpv6_send(FAR struct net_driver_s *dev,
|
|||
if (hdrlen > dev->d_len)
|
||||
{
|
||||
nwarn("WARNING: Dropping small ICMPv6 packet: %u < %u\n",
|
||||
buflen, hdrlen);
|
||||
dev->d_len, hdrlen);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -907,7 +907,7 @@ void sixlowpan_tcp_send(FAR struct net_driver_s *dev,
|
|||
if (hdrlen > dev->d_len)
|
||||
{
|
||||
nwarn("WARNING: Dropping small TCP packet: %u < %u\n",
|
||||
buflen, hdrlen);
|
||||
dev->d_len, hdrlen);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -459,7 +459,7 @@ void sixlowpan_udp_send(FAR struct net_driver_s *dev,
|
|||
if (hdrlen > dev->d_len)
|
||||
{
|
||||
nwarn("WARNING: Dropping small UDP packet: %u < %u\n",
|
||||
buflen, hdrlen);
|
||||
dev->d_len, hdrlen);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue