diff options
author | Treeki <treeki@gmail.com> | 2014-02-12 13:27:41 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-02-12 13:27:41 +0100 |
commit | 89825b23cec159b8945e1ce630d6b8fd3eeec059 (patch) | |
tree | b54a95b2a8327968abee537ff9f1384f4db0ba52 /bouncer | |
parent | 5ae205badc7fe6ba4287d8e657f7010ff5ff408c (diff) | |
download | bounce4-89825b23cec159b8945e1ce630d6b8fd3eeec059.tar.gz bounce4-89825b23cec159b8945e1ce630d6b8fd3eeec059.zip |
fix NetCore::quitFlag being uninitialised (thanks, Valgrind/memcheck!)
Diffstat (limited to '')
-rw-r--r-- | bouncer/netcore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bouncer/netcore.cpp b/bouncer/netcore.cpp index 0dd929f..f8c484e 100644 --- a/bouncer/netcore.cpp +++ b/bouncer/netcore.cpp @@ -83,6 +83,8 @@ int NetCore::execute() { // do stuff! + quitFlag = false; + while (!quitFlag) { fd_set readSet, writeSet; FD_ZERO(&readSet); |