about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-09-07 10:48:32 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-09-07 10:48:32 -0700
commit956829c18e8ade666083f1c69043a16a80f70b0d (patch)
tree3618849876b02ad81c96520eabe8237ae4135e77 /Src/Modules
parentb7ba62871e1bc6a7b88882fea021a8eaaf9150c9 (diff)
downloadzsh-956829c18e8ade666083f1c69043a16a80f70b0d.tar.gz
zsh-956829c18e8ade666083f1c69043a16a80f70b0d.tar.xz
zsh-956829c18e8ade666083f1c69043a16a80f70b0d.zip
33122: typo from 32891 caused incorrect matches for pcre_match -n
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c
index 040a33f8e..2393cd1e7 100644
--- a/Src/Modules/pcre.c
+++ b/Src/Modules/pcre.c
@@ -289,7 +289,7 @@ bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
 	matched_portion = OPT_ARG(ops,c);
     }
     if(OPT_HASARG(ops,c='n')) { /* The offset position to start the search, in bytes. */
-	if ((offset_start = getposint(OPT_ARG(ops,c), nam) < 0))
+	if ((offset_start = getposint(OPT_ARG(ops,c), nam)) < 0)
 	    return 1;
     }
     /* For the entire match, 'Return' the offset byte positions instead of the matched string */