diff options
Diffstat (limited to 'lib/iowatch.cc')
-rw-r--r-- | lib/iowatch.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/iowatch.cc b/lib/iowatch.cc index 7335d4a..5a975f7 100644 --- a/lib/iowatch.cc +++ b/lib/iowatch.cc @@ -33,6 +33,7 @@ IOWatch::IOWatch() { num = 0; io = new int [FD_SETSIZE]; + memset(io, -1, FD_SETSIZE); } IOWatch::~IOWatch() { |