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

refactor: Comply with Wmaybe-uninitialized

This commit is contained in:
Anthony Bilinski 2022-03-11 03:31:36 -08:00
parent bda1a6a909
commit 17043dbc45
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 2 additions and 2 deletions

View File

@ -926,7 +926,7 @@ void Core::onUserStatusChanged(Tox*, uint32_t friendId, Tox_User_Status userstat
void Core::onConnectionStatusChanged(Tox*, uint32_t friendId, Tox_Connection status, void* vCore)
{
Core* core = static_cast<Core*>(vCore);
Status::Status friendStatus;
Status::Status friendStatus = Status::Status::Offline;
switch (status)
{
case TOX_CONNECTION_NONE:

View File

@ -140,7 +140,7 @@ static IBaseFilter* getDevFilter(QString devName)
LPMALLOC coMalloc = nullptr;
IBindCtx* bindCtx = nullptr;
LPOLESTR olestr = nullptr;
char* devIdString;
char* devIdString = nullptr;
if (CoGetMalloc(1, &coMalloc) != S_OK)
goto fail;