# HG changeset patch # User Bram Moolenaar # Date 1640862003 -3600 # Node ID 88a33cf5aeb6f56b0c5278183adcdb480382dbde # Parent e055121290555ec44bb42222cb88e749325f6794 patch 8.2.3943: compiler warning from gcc for uninitialized variable Commit: https://github.com/vim/vim/commit/491669701c72578f273db53e579d8a03a9deac0c Author: Bram Moolenaar Date: Thu Dec 30 10:51:45 2021 +0000 patch 8.2.3943: compiler warning from gcc for uninitialized variable Problem: Compiler warning from gcc for uninitialized variable. Solution: Initialize variable. (closes https://github.com/vim/vim/issues/9429) diff --git a/src/diff.c b/src/diff.c --- a/src/diff.c +++ b/src/diff.c @@ -1636,7 +1636,7 @@ diff_read( long off; int i; int notset = TRUE; // block "*dp" not set yet - diffhunk_T *hunk; + diffhunk_T *hunk = NULL; // init to avoid gcc warning enum { DIFF_ED, @@ -1662,10 +1662,7 @@ diff_read( { hunk = ALLOC_ONE(diffhunk_T); if (hunk == NULL) - { - emsg(_("E98: Cannot read diff output")); return; - } } for (;;) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3943, +/**/ 3942, /**/ 3941,