Skip to content

Commit 1c13fd9

Browse files
committed
EthernetClient - initialize uip_userdata_t packets indexes
1 parent 0e6348e commit 1c13fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EthernetClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ typedef struct {
4646
typedef struct {
4747
uint8_t conn_index;
4848
uint8_t state;
49-
memhandle packets_in[UIP_SOCKET_NUMPACKETS];
50-
memhandle packets_out[UIP_SOCKET_NUMPACKETS];
49+
memhandle packets_in[UIP_SOCKET_NUMPACKETS] = {NOBLOCK};
50+
memhandle packets_out[UIP_SOCKET_NUMPACKETS] = {NOBLOCK};
5151
memaddress out_pos;
5252
#if UIP_CLIENT_TIMER >= 0
5353
unsigned long timer;

0 commit comments

Comments
 (0)