fix very nasty bug that could cause billion of segfaults

This commit is contained in:
Andrzej Rybczak
2009-09-23 03:31:39 +02:00
parent e304a6b7de
commit 04f822b44a

View File

@@ -40,7 +40,7 @@ namespace
bool has_non_ascii_chars(const char *s)
{
for (; s; ++s)
for (; *s; ++s)
if (char_non_ascii(*s))
return true;
return false;