]> granicus.if.org Git - vim/commitdiff
patch 8.0.0266: compiler warning for using uninitialized variable v8.0.0266
authorBram Moolenaar <Bram@vim.org>
Sun, 29 Jan 2017 20:42:20 +0000 (21:42 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 29 Jan 2017 20:42:20 +0000 (21:42 +0100)
Problem:    Compiler warning for using uninitialized variable.
Solution:   Set tab_number also when there is an error.

src/ex_docmd.c
src/version.c

index 0317050d6b897ef796b9f7b361b5bc54c2df2edc..1a10bb05776e6a33d052ded879f5674b8f1eb650 100644 (file)
@@ -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;
index bf28557567d7da6d0368974cbbcaa1fcf67cc349..ba1501cddfba94b887a80aedb9cc60968e6192d4 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    266,
 /**/
     265,
 /**/