Patch 8.2.4771
Problem: Coverity warns for not checking return value.
Solution: Check return value of rettv_dict_alloc().
Files: src/channel.c
*** ../vim-8.2.4770/src/channel.c 2022-04-16 10:40:59.081370588 +0100
--- src/channel.c 2022-04-17 13:16:34.280821050 +0100
***************
*** 4549,4555 ****
dictitem_T *di;
// return an empty dict by default
! rettv_dict_alloc(rettv);
if (argvars[1].v_type != VAR_DICT)
{
--- 4549,4556 ----
dictitem_T *di;
// return an empty dict by default
! if (rettv_dict_alloc(rettv) == FAIL)
! return;
if (argvars[1].v_type != VAR_DICT)
{
*** ../vim-8.2.4770/src/version.c 2022-04-17 12:46:50.101294003 +0100
--- src/version.c 2022-04-17 13:17:13.008846852 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4771,
/**/
--
Everybody wants to go to heaven, but nobody wants to die.
/// Bram Moolenaar -- Br...@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 ///