mirror of
https://github.com/mupen64plus/mupen64plus-video-arachnoid.git
synced 2024-06-02 19:27:49 -04:00
Merge pull request #11 from Sinisig/crash-fix
Fixed crash in StringFunctions::trim()
This commit is contained in:
commit
244f13d3b9
|
@ -98,6 +98,12 @@ void trim(string& str, bool left, bool right, const string delims)
|
|||
//-----------------------------------------------------------------------------
|
||||
char* trim(char* str, bool left, bool right)
|
||||
{
|
||||
// Empty string check
|
||||
if (*str == '\0')
|
||||
{
|
||||
return str;
|
||||
}
|
||||
|
||||
//Trim from the left
|
||||
if(left)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue