diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-29 21:42:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-29 21:42:20 +0100 |
commit | c625155ea42da2d7cefd853837f18115713b439c (patch) | |
tree | 0bb1a421b49d9e8ca547d1245728f86557014bd2 | |
parent | a58883b4ea0bbb813fd4dd7eb49dd6f03e3e5387 (diff) | |
download | vim-git-c625155ea42da2d7cefd853837f18115713b439c.tar.gz |
patch 8.0.0266: compiler warning for using uninitialized variablev8.0.0266
Problem: Compiler warning for using uninitialized variable.
Solution: Set tab_number also when there is an error.
-rw-r--r-- | src/ex_docmd.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 0317050d6..1a10bb057 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -7533,7 +7533,10 @@ get_tabpage_arg(exarg_T *eap) else if (eap->addr_count > 0) { if (unaccept_arg0 && eap->line2 == 0) + { eap->errmsg = e_invrange; + tab_number = 0; + } else { tab_number = eap->line2; diff --git a/src/version.c b/src/version.c index bf2855756..ba1501cdd 100644 --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 266, +/**/ 265, /**/ 264, |