]> granicus.if.org Git - vim/commitdiff
patch 8.0.1803: warning for uninitialized variable v8.0.1803
authorBram Moolenaar <Bram@vim.org>
Mon, 7 May 2018 18:10:17 +0000 (20:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 7 May 2018 18:10:17 +0000 (20:10 +0200)
Problem:    Warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize it.

src/terminal.c
src/version.c

index 4dd666523932e66ecfeb4cec46feff4e37b319b1..0c483e140c17a5a5d97b05fdf3c93d1a455fc2c3 100644 (file)
@@ -4758,7 +4758,7 @@ f_term_gettitle(typval_T *argvars, typval_T *rettv)
 f_term_gettty(typval_T *argvars, typval_T *rettv)
 {
     buf_T      *buf = term_get_buf(argvars, "term_gettty()");
-    char_u     *p;
+    char_u     *p = NULL;
     int                num = 0;
 
     rettv->v_type = VAR_STRING;
index 20f3f2fa7a5dca04977225665792eec50ac0ac7a..f0cb29321ea4d5ddf49e4c8ca62d28b46c578afe 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1803,
 /**/
     1802,
 /**/