[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.26-24-g92b41d7

From: Paul Eggert
Subject: grep branch, master, updated. v2.26-24-g92b41d7
Date: Sat, 19 Nov 2016 09:34:20 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  92b41d7e9c4df1e3cbcdb3fcc955636e76edb8cf (commit)
      from  f028b70e4eac297ce37b306fbdc18efbf09f2e4a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 92b41d7e9c4df1e3cbcdb3fcc955636e76edb8cf
Author: Paul Eggert <address@hidden>
Date:   Sat Nov 19 01:33:48 2016 -0800

    grep: fix performance typo with -P
    Reported by Zev Weiss in:
    * src/pcresearch.c (Pcompile): Initialize reflags.

diff --git a/src/pcresearch.c b/src/pcresearch.c
index 9a13d97..439945a 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -176,6 +176,7 @@ Pcompile (char const *pattern, size_t size)
   if (match_lines)
     strcpy (n, xsuffix);
+  reflags = flags;
   cre = pcre_compile (re, flags, &ep, &e, pcre_maketables ());
   if (!cre)
     die (EXIT_TROUBLE, 0, "%s", ep);


Summary of changes:
 src/pcresearch.c |    1 +
 1 file changed, 1 insertion(+)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]