diff --git a/common/string.cpp b/common/string.cpp index c59082a5ba..55a46b077c 100644 --- a/common/string.cpp +++ b/common/string.cpp @@ -42,7 +42,7 @@ int ReadDelimitedText( char* dest, char* source, int NbMaxChar ) */ char* StrPurge( char* text ) { - const char whitespace[] = " \t\n\r\f\v"; + static const char whitespace[] = " \t\n\r\f\v"; if( text ) {