We've been using an idiom of min_length == 0, max_length == 0 to
indicate no length limit, but this has apparently been broken since
the rework of the for_each interfaces that introduced this.
action (closure, string->s, &trie->flags);
}
action (closure, string->s, &trie->flags);
}
- if (length == max_length)
+ if (max_length > 0 && length == max_length)
return count;
/* Loop over each element, appending the character and recursing. */
return count;
/* Loop over each element, appending the character and recursing. */