Fix crash formatting empty strings
This commit is contained in:
parent
56b7f91361
commit
9fb61faeb2
|
@ -104,6 +104,9 @@ void Prettify( std::string& aSource, char aQuoteChar )
|
|||
while( seek != aSource.end() && isWhitespace( *seek ) )
|
||||
seek++;
|
||||
|
||||
if( seek == aSource.end() )
|
||||
return (char)0;
|
||||
|
||||
return *seek;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue