cmText.c cmTextIsEmpty() now returns true when input == NULL.
This commit is contained in:
parent
6602a6277a
commit
a40294f9a9
7
cmText.c
7
cmText.c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user