Initialize static array

This commit is contained in:
2026-01-24 01:26:55 +01:00
parent 282bb9632f
commit d5700bf45c
+2
View File
@@ -308,6 +308,8 @@ int tcp_register_events(TCP *tcp, void **contexts, struct pollfd *polled)
int tcp_translate_events(TCP *tcp, Event *events, void **contexts, struct pollfd *polled, int num_polled) int tcp_translate_events(TCP *tcp, Event *events, void **contexts, struct pollfd *polled, int num_polled)
{ {
bool removed[TCP_POLL_CAPACITY]; bool removed[TCP_POLL_CAPACITY];
for (int i = 0; i < TCP_POLL_CAPACITY; i++)
removed[i] = false;
int num_events = 0; int num_events = 0;
for (int i = 1; i < num_polled; i++) { for (int i = 1; i < num_polled; i++) {