Patch 8.2.1960

6 views
Skip to first unread message

Bram Moolenaar

unread,
Nov 5, 2020, 2:47:11 PM11/5/20
to vim...@googlegroups.com

Patch 8.2.1960
Problem: Warning for uninitialized variable.
Solution: Initialize the variable.
Files: src/evalfunc.c


*** ../vim-8.2.1959/src/evalfunc.c 2020-10-31 19:33:34.531695411 +0100
--- src/evalfunc.c 2020-11-05 10:51:30.268074839 +0100
***************
*** 6873,6879 ****
static UINT32_T gx, gy, gz, gw;
static int initialized = FALSE;
listitem_T *lx, *ly, *lz, *lw;
! UINT32_T x, y, z, w, t, result;

if (argvars[0].v_type == VAR_UNKNOWN)
{
--- 6873,6879 ----
static UINT32_T gx, gy, gz, gw;
static int initialized = FALSE;
listitem_T *lx, *ly, *lz, *lw;
! UINT32_T x = 0, y, z, w, t, result;

if (argvars[0].v_type == VAR_UNKNOWN)
{
*** ../vim-8.2.1959/src/version.c 2020-11-05 20:44:29.760909173 +0100
--- src/version.c 2020-11-05 20:42:25.813212976 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1960,
/**/

--
hundred-and-one symptoms of being an internet addict:
200. You really believe in the concept of a "paperless" office.

/// Bram Moolenaar -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages