diff options
author | Bram Moolenaar <bram@vim.org> | 2013-06-14 22:48:54 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-06-14 22:48:54 +0200 |
commit | 592eb1a4446426411935acdca7797a490dd5e5c8 (patch) | |
tree | 3fafa9c328a62f2bb6bb7621171dbf463f56e6ae | |
parent | 88638230d1b4d9ab9db82d0d8dc630643af69c46 (diff) | |
download | vim-592eb1a4446426411935acdca7797a490dd5e5c8.tar.gz |
Problem: Compiler warning for unitialized variable. (Tony Mechelynck)
Solution: Set the length to the matching backref.
-rw-r--r-- | src/regexp.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c index e33e0cfb..0798f028 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -5026,7 +5026,7 @@ regmatch(scan) reg_startpos[no].col, reg_endpos[no].lnum, reg_endpos[no].col, - NULL); + &len); } } } diff --git a/src/version.c b/src/version.c index 0b88903f..1547d57d 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1195, +/**/ 1194, /**/ 1193, |