To: vim_dev@googlegroups.com Subject: Patch 9.0.0383 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0383 (after 9.0.0374) Problem: Coverity complains about unused value. Solution: Use the value. Files: src/spellfile.c *** ../vim-9.0.0382/src/spellfile.c 2022-09-04 13:45:10.763423705 +0100 --- src/spellfile.c 2022-09-05 10:52:14.700162710 +0100 *************** *** 404,410 **** *
: */ for (i = 0; i < VIMSPELLMAGICL; ++i) ! buf[i] = c = getc(fd); // if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0) { emsg(_(e_this_does_not_look_like_spell_file)); --- 404,410 ---- *
: */ for (i = 0; i < VIMSPELLMAGICL; ++i) ! buf[i] = (c = getc(fd)) == EOF ? 0 : c; // if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0) { emsg(_(e_this_does_not_look_like_spell_file)); *************** *** 700,706 **** * : */ for (i = 0; i < VIMSUGMAGICL; ++i) ! buf[i] = c = getc(fd); // if (STRNCMP(buf, VIMSUGMAGIC, VIMSUGMAGICL) != 0) { semsg(_(e_this_does_not_look_like_sug_file_str), --- 700,706 ---- * : */ for (i = 0; i < VIMSUGMAGICL; ++i) ! buf[i] = (c = getc(fd)) == EOF ? 0 : c; // if (STRNCMP(buf, VIMSUGMAGIC, VIMSUGMAGICL) != 0) { semsg(_(e_this_does_not_look_like_sug_file_str), *** ../vim-9.0.0382/src/version.c 2022-09-05 10:47:10.536279263 +0100 --- src/version.c 2022-09-05 10:55:13.224094246 +0100 *************** *** 705,706 **** --- 705,708 ---- { /* Add new patch number below this line */ + /**/ + 383, /**/ -- A)bort, R)etry, B)ang it with a large hammer /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///