From: Bram Moolenaar Date: Sun, 17 Apr 2022 12:17:40 +0000 (+0100) Subject: patch 8.2.4771: Coverity warns for not checking return value X-Git-Tag: v8.2.4771 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=066e0d9869a16d89b1b2336b4150f476c5337283;p=vim 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 index ef747d0e2..79f4dbc29 100644 --- a/src/channel.c +++ b/src/channel.c @@ -4549,7 +4549,8 @@ ch_expr_common(typval_T *argvars, typval_T *rettv, int eval) 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 index 90b0b1238..c5ac7c5ee 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4771, /**/ 4770, /**/