diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/Modules/pcre.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 21c3ac2cc..f7da9b01a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-07-23 Barton E. Schaefer <schaefer@zsh.org> + + * 32898 (credit Jun T.): Doc/Zsh/mod_pcre.yo: fix bug in 32891. + 2014-07-23 Ansgar Burchardt <ansgar@debian.org> * 32895: Completion/Unix/Command/_nm: Match more shared library 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) { |