diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2014-07-23 08:40:11 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-07-23 08:40:11 -0700 |
| commit | 933a0c45d288395fefc7bff03b6b48668b694f33 (patch) | |
| tree | 5d54b50d98b5dddb552077cbfbc2e592c38697c9 | |
| parent | force retention of whitespace in "fc" item prototype (diff) | |
| download | zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.gz zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.bz2 zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.lz zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.xz zsh-933a0c45d288395fefc7bff03b6b48668b694f33.tar.zst zsh-933a0c45d288395fefc7bff03b6b48668b694f33.zip | |
32898 (credit Jun T.): fix offset_start initialization bug in 32891
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Src/Modules/pcre.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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-20 Barton E. Schaefer <schaefer@zsh.org> * unposted: Doc/Zsh/builtins.yo: force retention of whitespace 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) { |
