about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-07-23 08:40:11 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-07-23 08:40:11 -0700
commit933a0c45d288395fefc7bff03b6b48668b694f33 (patch)
tree5d54b50d98b5dddb552077cbfbc2e592c38697c9 /Src
parent4054f1a0e8b4e3ead410d30736bb7c2aaca39d85 (diff)
downloadzsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.gz
zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.xz
zsh-933a0c45d288395fefc7bff03b6b48668b694f33.zip
32898 (credit Jun T.): fix offset_start initialization bug in 32891
Diffstat (limited to 'Src')
-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 0e43ab7a9..040a33f8e 100644
--- a/Src/Modules/pcre.c
+++ b/Src/Modules/pcre.c
@@ -274,7 +274,7 @@ bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
     int return_value = 1;
     /* The subject length and offset start are both int values in pcre_exec */
     int subject_len;
-    int offset_start = -1;
+    int offset_start = 0;
     int want_offset_pair = 0;
 
     if (pcre_pattern == NULL) {