pcre2/pcre2-10.31-Oops-forgot-about-C-bsr-in-previous-patch.patch

30 lines
901 B
Diff

From e3ac8929b8152e6a30eff90f791b76339e44d91b Mon Sep 17 00:00:00 2001
From: ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>
Date: Mon, 19 Feb 2018 17:00:45 +0000
Subject: [PATCH 2/2] Oops, forgot about "-C bsr" in previous patch.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@917 6239d852-aaf2-0410-a92c-79f79f948069
Petr Písař: Ported to 10.31.
---
src/pcre2test.c | 2 +-
diff --git a/src/pcre2test.c b/src/pcre2test.c
index 40e2161..ad3db2c 100644
--- a/src/pcre2test.c
+++ b/src/pcre2test.c
@@ -7793,7 +7793,7 @@ if (arg != NULL && arg[0] != CHAR_MINUS)
{
case CONF_BSR:
(void)PCRE2_CONFIG(coptlist[i].value, &optval);
- printf("%s\n", optval? "ANYCRLF" : "ANY");
+ printf("%s\n", (optval == PCRE2_BSR_ANYCRLF)? "ANYCRLF" : "ANY");
break;
case CONF_FIX:
--
2.13.6