Commit 4684f678 authored by Mathieu Stefani's avatar Mathieu Stefani

Fixed an uninitialized value in os

parent e5d50bf5
......@@ -204,7 +204,7 @@ namespace Polling {
int
Epoll::toEpollEvents(Flags<NotifyOn> interest) const {
int events;
int events = 0;
if (interest.hasFlag(NotifyOn::Read))
events |= EPOLLIN;
......
......@@ -54,10 +54,10 @@ enum class Mode {
enum class NotifyOn {
None = 0,
Read = 1,
Write = Read << 1,
Hangup = Write << 1,
Shutdown = Hangup << 1
Read = 1,
Write = Read << 1,
Hangup = Read << 2,
Shutdown = Read << 3
};
DECLARE_FLAGS_OPERATORS(NotifyOn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment