From: Valentin Bartenev Date: Fri, 20 Nov 2020 09:29:30 +0000 (+0300) Subject: Ignoring pcre_study() error. X-Git-Tag: 0.5.0~10 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=4c58684c80fa6c2d82ab63dd608ec11e6e5d422c;p=njs.git Ignoring pcre_study() error. It provides optional optimization that shouldn't be fatal for regex compilation. --- diff --git a/src/njs_pcre.c b/src/njs_pcre.c index c8fa5ba2..2fafea7a 100644 --- a/src/njs_pcre.c +++ b/src/njs_pcre.c @@ -94,10 +94,8 @@ njs_regex_compile(njs_regex_t *regex, u_char *source, size_t len, regex->extra = pcre_study(regex->code, 0, &errstr); if (njs_slow_path(errstr != NULL)) { - njs_alert(ctx->trace, NJS_LEVEL_ERROR, + njs_alert(ctx->trace, NJS_LEVEL_WARN, "pcre_study(\"%s\") failed: %s", pattern, errstr); - - goto done; } err = pcre_fullinfo(regex->code, NULL, PCRE_INFO_CAPTURECOUNT,