Index: src/string-search.h |
=================================================================== |
--- src/string-search.h (revision 10282) |
+++ src/string-search.h (working copy) |
@@ -369,6 +369,10 @@ |
shift_table[pattern_length] = 1; |
suffix_table[pattern_length] = pattern_length + 1; |
+ if (pattern_length <= start) { |
+ return; |
+ } |
+ |
// Find suffixes. |
PatternChar last_char = pattern[pattern_length - 1]; |
int suffix = pattern_length + 1; |