From 9ece486e2247a44e77389a80ca42d93233b07466 Mon Sep 17 00:00:00 2001 From: tux3 Date: Sat, 25 Apr 2015 02:28:47 +0200 Subject: [PATCH] Prevent possible uninitialized read of status For unhandled values of Status, we want to return, not continue with an uninitialized value. --- src/core/core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/core.cpp b/src/core/core.cpp index bb155d411..cdbb49169 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -830,6 +830,7 @@ void Core::setStatus(Status status) userstatus = TOX_USER_STATUS_BUSY; break; default: + return; break; }