Skip to content

Commit bd59db1

Browse files
committed
Zero initialize array
1 parent 54559ef commit bd59db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HTTPServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class HTTPServer {
5252
// Kqueue
5353
struct timespec kqTimeout = {2, 0}; // Block for 2 seconds and 0ns at the most
5454
int32_t kqfd = -1; // kqueue descriptor
55-
std::array<struct kevent, QUEUE_SIZE> evList; // Events that have triggered a filter in the kqueue (max QUEUE_SIZE at a time)
55+
std::array<struct kevent, QUEUE_SIZE> evList = {}; // Events that have triggered a filter in the kqueue (max QUEUE_SIZE at a time)
5656

5757
// Client map, maps Socket descriptor to Client object
5858
std::unordered_map<int, std::shared_ptr<Client>> clientMap;

0 commit comments

Comments
 (0)