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 -- [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/20220417121808.D9A761C0865%40moolenaar.net.