Networking-for-Arduino / EthernetENC

Ethernet library for ENC28J60. This is a modern version of the UIPEthernet library. EthernetENC library is compatible with all Arduino architectures with Arduino SPI library with transactions support. Only include EthernetENC.h instead of Ethernet.h
131 stars 29 forks source link

Static code check #23

Closed simogaspa84 closed 2 years ago

simogaspa84 commented 2 years ago

Hi..

Running the analysis I got this info from Cppcheck 2.6

image

``

UIPUDP::beginPacket(IPAddress ip, uint16_t port) { UIPEthernetClass::tick(); if ((ip[0] || ip[1] || ip[2] || ip[3]) && port) { uip_ipaddr_t ripaddr; uip_ip_addr(&ripaddr, ip);

Maybe it is a false positive but better to check...

I hope it helps

Simone

JAndrassy commented 2 years ago

https://trac.cppcheck.net/ticket/9554