To: vim_dev@googlegroups.com Subject: Patch 8.2.3527 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3527 Problem: Gcc complains about uninitialized variable. (Tony Mechelynck) Solution: Initialize it. Files: src/gui_gtk_x11.c *** ../vim-8.2.3526/src/gui_gtk_x11.c 2021-10-16 20:52:01.772842109 +0100 --- src/gui_gtk_x11.c 2021-10-17 11:30:10.326139171 +0100 *************** *** 5605,5611 **** int byte_sum; // byte position in string char_u *cs; // current *s pointer int needs_pango; // look ahead, 0=ascii 1=unicode/ligatures ! int should_need_pango; int slen; int is_ligature; int next_is_ligature; --- 5605,5611 ---- int byte_sum; // byte position in string char_u *cs; // current *s pointer int needs_pango; // look ahead, 0=ascii 1=unicode/ligatures ! int should_need_pango = FALSE; int slen; int is_ligature; int next_is_ligature; *************** *** 5743,5748 **** --- 5743,5749 ---- slen++; // ascii } } + // temporarily zero terminate substring, print, restore char, wrap backup_ch = *(cs + slen); *(cs + slen) = 0; *** ../vim-8.2.3526/src/version.c 2021-10-16 21:58:23.206049605 +0100 --- src/version.c 2021-10-17 11:31:19.466296768 +0100 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3527, /**/ -- If Microsoft would build a car... ... the oil, water temperature, and alternator warning lights would all be replaced by a single "General Protection Fault" warning light. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///