summaryrefslogtreecommitdiff
path: root/src/pcresearch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcresearch.c')
-rw-r--r--src/pcresearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcresearch.c b/src/pcresearch.c
index 6f016b68..1fd5bdec 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -214,7 +214,7 @@ Pexecute (char const *buf, size_t size, size_t *match_size,
options |= PCRE_NO_UTF8_CHECK;
int valid_bytes = validated - p;
- if (valid_bytes < 0)
+ if (valid_bytes <= 0)
{
e = pcre_exec (cre, extra, p, search_bytes, 0,
options, sub, NSUB);