diff src/window.c @ 16405:840fa633ad64 v8.1.1207

patch 8.1.1207: some compilers give warning messages commit https://github.com/vim/vim/commit/1f3601e92e7fd2813b9541580d6d9649c802eb58 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 26 20:33:00 2019 +0200 patch 8.1.1207: some compilers give warning messages Problem: Some compilers give warning messages. Solution: Initialize variables, change printf() argument. (Christian Brabandt, closes #4305)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Apr 2019 20:45:06 +0200
parents 3b2db762a509
children 8c3a1bd270bb
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -3981,7 +3981,7 @@ enter_tabpage(
     void
 goto_tabpage(int n)
 {
-    tabpage_T	*tp;
+    tabpage_T	*tp = NULL;  // shut up compiler
     tabpage_T	*ttp;
     int		i;