From 89825b23cec159b8945e1ce630d6b8fd3eeec059 Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 12 Feb 2014 13:27:41 +0100 Subject: fix NetCore::quitFlag being uninitialised (thanks, Valgrind/memcheck!) --- bouncer/netcore.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bouncer/netcore.cpp') 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); -- cgit v1.2.3