Patch 8.2.2752
problem: coverity reports unreachable code.
Solution: Remove check for positive index.
Files: src/typval.c
*** ../vim-8.2.2751/src/typval.c 2021-03-28 16:26:37.504193381 +0200
--- src/typval.c 2021-04-10 21:44:34.230975582 +0200
***************
*** 367,376 ****
return FAIL;
if (args[idx].vval.v_string == NULL || *args[idx].vval.v_string == NUL)
{
! if (idx >= 0)
! semsg(_(e_non_empty_string_required_for_argument_nr), idx + 1);
! else
! emsg(_(e_non_empty_string_required));
return FAIL;
}
return OK;
--- 367,373 ----
return FAIL;
if (args[idx].vval.v_string == NULL || *args[idx].vval.v_string == NUL)
{
! semsg(_(e_non_empty_string_required_for_argument_nr), idx + 1);
return FAIL;
}
return OK;
*** ../vim-8.2.2751/src/version.c 2021-04-10 21:38:35.455959646 +0200
--- src/version.c 2021-04-10 21:45:26.198914149 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2752,
/**/
--
>From "know your smileys":
=):-) Uncle Sam
/// 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/202104101946.13AJkioL284767%40masaka.moolenaar.net.