To: vim_dev@googlegroups.com Subject: Patch 7.4.2065 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2065 Problem: Compiler warns for uninitialzed variable. (John Marriott) Solution: Set lnum to the right value. Files: src/evalfunc.c *** ../vim-7.4.2064/src/evalfunc.c 2016-07-17 22:13:26.813095293 +0200 --- src/evalfunc.c 2016-07-17 22:31:14.302451011 +0200 *************** *** 3447,3458 **** && dashes != NULL) { /* Find first non-empty line in the fold. */ ! while (lnum < (linenr_T)get_vim_var_nr(VV_FOLDEND)) ! { if (!linewhite(lnum)) break; - ++lnum; - } /* Find interesting text in this line. */ s = skipwhite(ml_get(lnum)); --- 3447,3455 ---- && dashes != NULL) { /* Find first non-empty line in the fold. */ ! for (lnum = foldstart; lnum < foldend; ++lnum) if (!linewhite(lnum)) break; /* Find interesting text in this line. */ s = skipwhite(ml_get(lnum)); *** ../vim-7.4.2064/src/version.c 2016-07-17 22:25:31.601874049 +0200 --- src/version.c 2016-07-17 22:31:06.438529616 +0200 *************** *** 760,761 **** --- 760,763 ---- { /* Add new patch number below this line */ + /**/ + 2065, /**/ -- "A mouse can be just as dangerous as a bullet or a bomb." (US Representative Lamar Smith, R-Texas) /// 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 ///