commit | eb3593b38b7b6b658e93ad05d6caf76d58cc0c35 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Apr 22 22:33:57 2006 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Apr 22 22:33:57 2006 +0000 |
tree | 39210f19a86e4db2914523b0fde4a5ff9d345c16 | |
parent | 57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 [diff] [blame] |
updated for version 7.0e06
diff --git a/src/regexp.c b/src/regexp.c index e0bfb03..2cd3120 100644 --- a/src/regexp.c +++ b/src/regexp.c
@@ -7054,7 +7054,7 @@ int round; linenr_T lnum; - if (!can_f_submatch) + if (!can_f_submatch || no < 0) return NULL; if (submatch_match == NULL) @@ -7112,10 +7112,10 @@ ++len; } - if (round == 1) + if (retval == NULL) { retval = lalloc((long_u)len, TRUE); - if (s == NULL) + if (retval == NULL) return NULL; } }