From a40294f9a91fa3c102669d449cec00c93c5bba68 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 13 Jan 2013 16:36:40 -0800 Subject: [PATCH] cmText.c cmTextIsEmpty() now returns true when input == NULL. --- cmText.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmText.c b/cmText.c index 8922193..fd0fe35 100644 --- a/cmText.c +++ b/cmText.c @@ -603,9 +603,10 @@ cmChar_t* cmTextAppendChar( cmChar_t* s, cmChar_t c, unsigned n ) bool cmTextIsEmpty( const cmChar_t* s ) { - for(; *s; ++s ) - if( !isspace(*s) ) - return false; + if( s!=NULL ) + for(; *s; ++s ) + if( !isspace(*s) ) + return false; return true; }