From: Bram Moolenaar Date: Sun, 29 Jan 2017 20:42:20 +0000 (+0100) Subject: patch 8.0.0266: compiler warning for using uninitialized variable X-Git-Tag: v8.0.0266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c625155ea42da2d7cefd853837f18115713b439c;p=vim 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. --- 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 @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 266, /**/ 265, /**/