To: vim_dev@googlegroups.com Subject: Patch 8.0.1443 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1443 (after 8.0.1441) Problem: Compiler complains about uninitialized variable. (Tony Mechelynck) Solution: Assign a value to the variable. Files: src/undo.c *** ../vim-8.0.1442/src/undo.c 2018-01-30 22:46:01.405404260 +0100 --- src/undo.c 2018-01-31 14:21:43.712109336 +0100 *************** *** 2364,2370 **** /* When "target" is 0; Back to origin. */ if (target == 0) ! goto found; /* * May do this twice: --- 2364,2373 ---- /* When "target" is 0; Back to origin. */ if (target == 0) ! { ! mark = lastmark; /* avoid that GCC complains */ ! goto target_zero; ! } /* * May do this twice: *************** *** 2491,2497 **** above = TRUE; /* stop above the header */ } ! found: /* If we found it: Follow the path to go to where we want to be. */ if (uhp != NULL || target == 0) { --- 2494,2500 ---- above = TRUE; /* stop above the header */ } ! target_zero: /* If we found it: Follow the path to go to where we want to be. */ if (uhp != NULL || target == 0) { *** ../vim-8.0.1442/src/version.c 2018-01-30 22:52:01.262625576 +0100 --- src/version.c 2018-01-31 14:25:09.366687013 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1443, /**/ -- Bravely bold Sir Robin, rode forth from Camelot, He was not afraid to die, Oh Brave Sir Robin, He was not at all afraid to be killed in nasty ways Brave, brave, brave, brave Sir Robin. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///