changeset 10753:4961e7acdd8c v8.0.0266

patch 8.0.0266: compiler warning for using uninitialized variable commit https://github.com/vim/vim/commit/c625155ea42da2d7cefd853837f18115713b439c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 29 21:42:20 2017 +0100 patch 8.0.0266: compiler warning for using uninitialized variable Problem: Compiler warning for using uninitialized variable. Solution: Set tab_number also when there is an error.
author Christian Brabandt <cb@256bit.org>
date Sun, 29 Jan 2017 21:45:05 +0100
parents 8d88dc61518f
children e87c4686e397
files src/ex_docmd.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,