diff options
Diffstat (limited to 'booki.c')
| -rw-r--r-- | booki.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -745,6 +745,9 @@ bool match_string(const char* pattern, const ES text) { // empty pattern matches everything if (!*pattern) return true; + // empty text matches nothing + if (text.len == 0) return false; + // get lengths int pattern_length = strlen(pattern); |
