From 491669701c72578f273db53e579d8a03a9deac0c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 30 Dec 2021 10:51:45 +0000 Subject: patch 8.2.3943: compiler warning from gcc for uninitialized variable Problem: Compiler warning from gcc for uninitialized variable. Solution: Initialize variable. (closes #9429) --- src/diff.c | 5 +---- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/diff.c b/src/diff.c index d42233889c..a3bb9c405f 100644 --- 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 index 70372a6e34..c7644a43d9 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3943, /**/ 3942, /**/ -- cgit v1.2.3