comparison src/vim9execute.c @ 19217:1235c26d9f04 v8.2.0167

patch 8.2.0167: Coverity warning for ignoring return value Commit: https://github.com/vim/vim/commit/58ceca5cae75ed839b20a89c5fa9998f02552f58 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 28 22:46:22 2020 +0100 patch 8.2.0167: Coverity warning for ignoring return value Problem: Coverity warning for ignoring return value. Solution: Check the return value and jump if failed.
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Jan 2020 23:00:03 +0100
parents 45c062fa2156
children 89931701e033
comparison
equal deleted inserted replaced
19216:ee5cec77b9f0 19217:1235c26d9f04
554 typval_T optval; 554 typval_T optval;
555 char_u *name = iptr->isn_arg.string; 555 char_u *name = iptr->isn_arg.string;
556 556
557 if (ga_grow(&ectx.ec_stack, 1) == FAIL) 557 if (ga_grow(&ectx.ec_stack, 1) == FAIL)
558 goto failed; 558 goto failed;
559 get_option_tv(&name, &optval, TRUE); 559 if (get_option_tv(&name, &optval, TRUE) == FAIL)
560 goto failed;
560 *STACK_TV_BOT(0) = optval; 561 *STACK_TV_BOT(0) = optval;
561 ++ectx.ec_stack.ga_len; 562 ++ectx.ec_stack.ga_len;
562 } 563 }
563 break; 564 break;
564 565