# HG changeset patch # User Bram Moolenaar # Date 1650198603 -7200 # Node ID 9f8563d056296c62f9e8cd72c56d8b51fe0768d9 # Parent 6e3c5d2307876361b271b2f5b95f8f6b9a3d2acd patch 8.2.4771: Coverity warns for not checking return value Commit: https://github.com/vim/vim/commit/066e0d9869a16d89b1b2336b4150f476c5337283 Author: Bram Moolenaar Date: Sun Apr 17 13:17:40 2022 +0100 patch 8.2.4771: Coverity warns for not checking return value Problem: Coverity warns for not checking return value. Solution: Check return value of rettv_dict_alloc(). diff --git a/src/channel.c b/src/channel.c --- a/src/channel.c +++ b/src/channel.c @@ -4549,7 +4549,8 @@ ch_expr_common(typval_T *argvars, typval dictitem_T *di; // return an empty dict by default - rettv_dict_alloc(rettv); + if (rettv_dict_alloc(rettv) == FAIL) + return; if (argvars[1].v_type != VAR_DICT) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4771, +/**/ 4770, /**/ 4769,