cmText.c cmTextIsEmpty() now returns true when input == NULL.

This commit is contained in:
kevin 2013-01-13 16:36:40 -08:00
parent 6602a6277a
commit a40294f9a9

View File

@ -603,9 +603,10 @@ cmChar_t* cmTextAppendChar( cmChar_t* s, cmChar_t c, unsigned n )
bool cmTextIsEmpty( const cmChar_t* s ) bool cmTextIsEmpty( const cmChar_t* s )
{ {
for(; *s; ++s ) if( s!=NULL )
if( !isspace(*s) ) for(; *s; ++s )
return false; if( !isspace(*s) )
return false;
return true; return true;
} }