We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54559ef commit bd59db1Copy full SHA for bd59db1
src/HTTPServer.h
@@ -52,7 +52,7 @@ class HTTPServer {
52
// Kqueue
53
struct timespec kqTimeout = {2, 0}; // Block for 2 seconds and 0ns at the most
54
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)
+ std::array<struct kevent, QUEUE_SIZE> evList = {}; // Events that have triggered a filter in the kqueue (max QUEUE_SIZE at a time)
56
57
// Client map, maps Socket descriptor to Client object
58
std::unordered_map<int, std::shared_ptr<Client>> clientMap;
0 commit comments