Change CommandReturnObject::AppendMessage to print an empty line if

AppendMessage("") is called.  This idiom is used in a handful of places
right now (e.g. to put space between different threads in 'bt all') but
the empty newline is being omitted instead of emitted.
<rdar://problem/13753830> 

llvm-svn: 180841
This commit is contained in:
Jason Molenda 2013-05-01 08:37:52 +00:00
parent b5a0fec4de
commit 59d55219cf
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ CommandReturnObject::AppendWarningWithFormat (const char *format, ...)
void
CommandReturnObject::AppendMessage (const char *in_string)
{
if (!in_string || *in_string == '\0')
if (!in_string)
return;
GetOutputStream().Printf("%s\n", in_string);
}