CString("")[0] is illegal

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