Initialize the all important automatic variable 'lldb::ConnectionStatus status' before

invoking the Read(...) method to read in bytes.  This seems to fix the infinite looping
I was seeing on SnowLeopard while running the test suite.

llvm-svn: 135461
This commit is contained in:
Johnny Chen 2011-07-19 01:13:00 +00:00
parent 09ddc43442
commit 74549c82ad
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock (StringExtrac
bool timed_out = false;
while (IsConnected() && !timed_out)
{
lldb::ConnectionStatus status;
lldb::ConnectionStatus status = eConnectionStatusNoConnection;
size_t bytes_read = Read (buffer, sizeof(buffer), timeout_usec, status, &error);
if (log)