commit | 066e0d9869a16d89b1b2336b4150f476c5337283 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Apr 17 13:17:40 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Apr 17 13:17:40 2022 +0100 |
tree | 8486f1f4ceab19bd9b1d7a81ac8b76a7b2f459f3 | |
parent | efbfa867a146fcd93fdec2435597aa4ae7f1325c [diff] [blame] |
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 ef747d0..79f4dbc 100644 --- a/src/channel.c +++ b/src/channel.c
@@ -4549,7 +4549,8 @@ 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) {