diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-05 10:55:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-05 10:55:27 +0100 |
commit | 963ab26842be22c0d210c3e950fecac28578f8be (patch) | |
tree | 3ff1189b9d509bbdae8292dfec66351dfcda7262 /src | |
parent | 31ea6bf530a814991f669122dbc9921117a862c3 (diff) |
patch 9.0.0383: Coverity complains about unused valuev9.0.0383
Problem: Coverity complains about unused value.
Solution: Use the value.
Diffstat (limited to 'src')
-rw-r--r-- | src/spellfile.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/spellfile.c b/src/spellfile.c index d650f870eb..b248b07ee4 100644 --- a/src/spellfile.c +++ b/src/spellfile.c @@ -404,7 +404,7 @@ spell_load_file( * <HEADER>: <fileID> */ for (i = 0; i < VIMSPELLMAGICL; ++i) - buf[i] = c = getc(fd); // <fileID> + buf[i] = (c = getc(fd)) == EOF ? 0 : c; // <fileID> if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0) { emsg(_(e_this_does_not_look_like_spell_file)); @@ -700,7 +700,7 @@ suggest_load_files(void) * <SUGHEADER>: <fileID> <versionnr> <timestamp> */ for (i = 0; i < VIMSUGMAGICL; ++i) - buf[i] = c = getc(fd); // <fileID> + buf[i] = (c = getc(fd)) == EOF ? 0 : c; // <fileID> if (STRNCMP(buf, VIMSUGMAGIC, VIMSUGMAGICL) != 0) { semsg(_(e_this_does_not_look_like_sug_file_str), diff --git a/src/version.c b/src/version.c index 5961413079..767fdc5806 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 383, +/**/ 382, /**/ 381, |