To: vim_dev@googlegroups.com Subject: Patch 8.0.1803 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1803 Problem: Warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize it. Files: src/terminal.c *** ../vim-8.0.1802/src/terminal.c 2018-05-06 22:01:38.777570516 +0200 --- src/terminal.c 2018-05-07 20:08:36.408504146 +0200 *************** *** 4758,4764 **** f_term_gettty(typval_T *argvars, typval_T *rettv) { buf_T *buf = term_get_buf(argvars, "term_gettty()"); ! char_u *p; int num = 0; rettv->v_type = VAR_STRING; --- 4758,4764 ---- f_term_gettty(typval_T *argvars, typval_T *rettv) { buf_T *buf = term_get_buf(argvars, "term_gettty()"); ! char_u *p = NULL; int num = 0; rettv->v_type = VAR_STRING; *** ../vim-8.0.1802/src/version.c 2018-05-06 22:01:38.781570492 +0200 --- src/version.c 2018-05-07 20:09:23.256201120 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1803, /**/ -- "Hegel was right when he said that we learn from history that man can never learn anything from history." (George Bernard Shaw) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///