about summary refs log tree commit diff
path: root/libidn/stringprep.c
diff options
context:
space:
mode:
Diffstat (limited to 'libidn/stringprep.c')
-rw-r--r--libidn/stringprep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libidn/stringprep.c b/libidn/stringprep.c
index 357f9e924f..1841b36178 100644
--- a/libidn/stringprep.c
+++ b/libidn/stringprep.c
@@ -42,7 +42,7 @@ stringprep_find_character_in_table (uint32_t ucs4,
      mostly interested in having someone give real-world benchmark on
      the impact of libidn.) */
 
-  for (i = 0; table[i].start; i++)
+  for (i = 0; table[i].start || table[i].end; i++)
     if (ucs4 >= table[i].start &&
 	ucs4 <= (table[i].end ? table[i].end : table[i].start))
       return i;