1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Prevent possible uninitialized read of status

For unhandled values of Status, we want to return, not continue with an uninitialized value.
This commit is contained in:
tux3 2015-04-25 02:28:47 +02:00
parent 0e65d150e3
commit 9ece486e22
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -830,6 +830,7 @@ void Core::setStatus(Status status)
userstatus = TOX_USER_STATUS_BUSY;
break;
default:
return;
break;
}