Fixed a crasher when there is no log in Process::SetExitStatus (...).

llvm-svn: 124338
This commit is contained in:
Greg Clayton 2011-01-26 23:47:29 +00:00
parent 9c40302b3b
commit 385d603825
1 changed files with 2 additions and 1 deletions

View File

@ -566,7 +566,8 @@ Process::SetExitStatus (int status, const char *cstr)
// We were already in the exited state
if (m_private_state.GetValue() == eStateExited)
{
log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
if (log)
log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
return false;
}