summaryrefslogtreecommitdiff
path: root/thirdparty/pcre2/src/pcre2_convert.c
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-11 13:45:27 +0200
committerGitHub <noreply@github.com>2019-07-11 13:45:27 +0200
commit41c28aae9a9eb670f782b542b00ca95a5bc12423 (patch)
treeb73462cf252d1d1d9add95826d67aded40379b3d /thirdparty/pcre2/src/pcre2_convert.c
parent60c6cf9f71c98ca4d85d976fa8767f22a057c0f5 (diff)
parent518e23424ecdd8411e8569b45b515129c4bbba15 (diff)
Merge pull request #30514 from akien-mga/pcre2-10.33
pcre2: Update to upstream version 10.33
Diffstat (limited to 'thirdparty/pcre2/src/pcre2_convert.c')
-rw-r--r--thirdparty/pcre2/src/pcre2_convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/pcre2/src/pcre2_convert.c b/thirdparty/pcre2/src/pcre2_convert.c
index 1dd5c337dc..d45b6fee97 100644
--- a/thirdparty/pcre2/src/pcre2_convert.c
+++ b/thirdparty/pcre2/src/pcre2_convert.c
@@ -276,7 +276,7 @@ while (plength > 0)
break;
case CHAR_BACKSLASH:
- if (plength <= 0) return PCRE2_ERROR_END_BACKSLASH;
+ if (plength == 0) return PCRE2_ERROR_END_BACKSLASH;
if (extended) nextisliteral = TRUE; else
{
if (*posix < 127 && strchr(posix_meta_escapes, *posix) != NULL)