# HG changeset patch # User Bram Moolenaar # Date 1634467503 -7200 # Node ID 9b2be5556740d690e6c92d379742458647d0c047 # Parent 7e64e5351c4df0c57f6dcc52339dad2f30fb9eaf patch 8.2.3527: gcc complains about uninitialized variable Commit: https://github.com/vim/vim/commit/9d4b8caf9eddb2db09395587c621309f4513befa Author: Bram Moolenaar Date: Sun Oct 17 11:33:47 2021 +0100 patch 8.2.3527: gcc complains about uninitialized variable Problem: Gcc complains about uninitialized variable. (Tony Mechelynck) Solution: Initialize it. diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -5605,7 +5605,7 @@ gui_gtk2_draw_string(int row, int col, c 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 should_need_pango = FALSE; int slen; int is_ligature; int next_is_ligature; @@ -5743,6 +5743,7 @@ gui_gtk2_draw_string(int row, int col, c slen++; // ascii } } + // temporarily zero terminate substring, print, restore char, wrap backup_ch = *(cs + slen); *(cs + slen) = 0; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3527, +/**/ 3526, /**/ 3525,