diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-30 10:51:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-30 10:51:45 +0000 |
commit | 491669701c72578f273db53e579d8a03a9deac0c (patch) | |
tree | 3e3dd9f83004d9b1747b7a863f0052eb09d84ca3 | |
parent | 8e7cc6b920ddea37deaa5e6b7b3bdfff2222d137 (diff) | |
download | vim-git-491669701c72578f273db53e579d8a03a9deac0c.tar.gz |
patch 8.2.3943: compiler warning from gcc for uninitialized variablev8.2.3943
Problem: Compiler warning from gcc for uninitialized variable.
Solution: Initialize variable. (closes #9429)
-rw-r--r-- | src/diff.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/diff.c b/src/diff.c index d42233889..a3bb9c405 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 70372a6e3..c7644a43d 100644 --- 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, |