mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Silence two uninitialized variable warnings; no bug
This commit is contained in:
parent
dc764b680d
commit
f979d7e7e8
@ -582,7 +582,7 @@ AsyncChannel::MaybeHandleError(Result code, const char* channelName)
|
||||
if (MsgProcessed == code)
|
||||
return true;
|
||||
|
||||
const char* errorMsg;
|
||||
const char* errorMsg = nullptr;
|
||||
switch (code) {
|
||||
case MsgNotKnown:
|
||||
errorMsg = "Unknown message: not processed";
|
||||
@ -618,7 +618,7 @@ AsyncChannel::MaybeHandleError(Result code, const char* channelName)
|
||||
void
|
||||
AsyncChannel::ReportConnectionError(const char* channelName) const
|
||||
{
|
||||
const char* errorMsg;
|
||||
const char* errorMsg = nullptr;
|
||||
switch (mChannelState) {
|
||||
case ChannelClosed:
|
||||
errorMsg = "Closed channel: cannot send/recv";
|
||||
|
Loading…
Reference in New Issue
Block a user