forked from OSchip/llvm-project
Initialize the all important automatic variable 'lldb::ConnectionStatus status' before
invoking the Read(...) method to read in bytes. Similar to r135461. llvm-svn: 135695
This commit is contained in:
parent
b595ed0085
commit
becabe0e81
|
@ -187,7 +187,7 @@ CommunicationKDP::WaitForPacketWithTimeoutMicroSecondsNoLock (DataExtractor &pac
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue