# HG changeset patch # User Bram Moolenaar # Date 1662372008 -7200 # Node ID ab563fdf3735b258446a59509561f2bf3757cfe6 # Parent a0d255a91b48564d6e4ae0a642ff2fef5e86d7c4 patch 9.0.0383: Coverity complains about unused value Commit: https://github.com/vim/vim/commit/963ab26842be22c0d210c3e950fecac28578f8be Author: Bram Moolenaar Date: Mon Sep 5 10:55:27 2022 +0100 patch 9.0.0383: Coverity complains about unused value Problem: Coverity complains about unused value. Solution: Use the value. diff --git a/src/spellfile.c b/src/spellfile.c --- a/src/spellfile.c +++ b/src/spellfile.c @@ -404,7 +404,7 @@ spell_load_file( *
: */ for (i = 0; i < VIMSPELLMAGICL; ++i) - buf[i] = c = getc(fd); // + buf[i] = (c = getc(fd)) == EOF ? 0 : c; // if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0) { emsg(_(e_this_does_not_look_like_spell_file)); @@ -700,7 +700,7 @@ suggest_load_files(void) * : */ for (i = 0; i < VIMSUGMAGICL; ++i) - buf[i] = c = getc(fd); // + buf[i] = (c = getc(fd)) == EOF ? 0 : c; // 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 --- 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,