also CString("")[0] is illegal

This commit is contained in:
Glenn Maynard
2003-05-22 21:13:29 +00:00
parent 3ed33e8e17
commit 623185dba7
+1 -1
View File
@@ -76,7 +76,7 @@ bool IsAnInt( const CString &s )
bool IsHexVal( const CString &s )
{
if( s[0] == '\0' )
if( !s.size() )
return false;
for( int i=0; s[i]; i++ )