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 ****
       * <HEADER>: <fileID>
       */
      for (i = 0; i < VIMSPELLMAGICL; ++i)
!       buf[i] = c = getc(fd);          // <fileID>
      if (STRNCMP(buf, VIMSPELLMAGIC, VIMSPELLMAGICL) != 0)
      {
        emsg(_(e_this_does_not_look_like_spell_file));
--- 404,410 ----
       * <HEADER>: <fileID>
       */
      for (i = 0; i < VIMSPELLMAGICL; ++i)
!       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,706 ****
             * <SUGHEADER>: <fileID> <versionnr> <timestamp>
             */
            for (i = 0; i < VIMSUGMAGICL; ++i)
!               buf[i] = c = getc(fd);                  // <fileID>
            if (STRNCMP(buf, VIMSUGMAGIC, VIMSUGMAGICL) != 0)
            {
                semsg(_(e_this_does_not_look_like_sug_file_str),
--- 700,706 ----
             * <SUGHEADER>: <fileID> <versionnr> <timestamp>
             */
            for (i = 0; i < VIMSUGMAGICL; ++i)
!               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),
*** ../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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220905095613.04D4A1C0CE4%40moolenaar.net.

Raspunde prin e-mail lui