Fix crash formatting empty strings

This commit is contained in:
Marek Roszko 2023-11-29 14:43:25 -05:00
parent 56b7f91361
commit 9fb61faeb2
1 changed files with 3 additions and 0 deletions

View File

@ -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;
};