From e99b1c63e9fe64705259af006fa7d4d537e02d0c Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 23 Sep 2009 03:31:39 +0200 Subject: [PATCH] fix very nasty bug that could cause billion of segfaults --- src/charset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charset.cpp b/src/charset.cpp index f3ab8bbf..40b5945f 100644 --- a/src/charset.cpp +++ b/src/charset.cpp @@ -41,7 +41,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;