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:
parent
0e65d150e3
commit
9ece486e22
|
@ -830,6 +830,7 @@ void Core::setStatus(Status status)
|
||||||
userstatus = TOX_USER_STATUS_BUSY;
|
userstatus = TOX_USER_STATUS_BUSY;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
return;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user