Fix error: variable 'buflen' is uninitialized when used here

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 13:19:26 +08:00 committed by Petro Karashchenko
parent ffda739704
commit 19138560f4
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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