From c397995320ebb6359b4687d10b6bb5dd95ff4ee4 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sat, 13 Oct 2012 12:16:22 -0400 Subject: [PATCH] Silence two uninitialized variable warnings; no bug --- ipc/glue/AsyncChannel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/glue/AsyncChannel.cpp b/ipc/glue/AsyncChannel.cpp index ef498421753..93001f9b39d 100644 --- a/ipc/glue/AsyncChannel.cpp +++ b/ipc/glue/AsyncChannel.cpp @@ -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";