diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-11 01:36:37 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-11 10:45:16 +0100 |
commit | 624ac8aede93cc521d7ea27ae406ad4780642fcb (patch) | |
tree | 1cff56276a73fd0e009d0748186efb08c5b73349 /src/nvim/eval/decode.c | |
parent | 18d244eded434e6bc47b351ef00088378883bf1d (diff) | |
download | rneovim-624ac8aede93cc521d7ea27ae406ad4780642fcb.tar.gz rneovim-624ac8aede93cc521d7ea27ae406ad4780642fcb.tar.bz2 rneovim-624ac8aede93cc521d7ea27ae406ad4780642fcb.zip |
coverity/161216: get_user_input: RETURN_LOCAL
*** CID 161216: Memory - illegal accesses (RETURN_LOCAL)
/src/nvim/eval.c: 11143 in get_user_input()
11137 rettv->vval.v_string =
11138 (char_u *)getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
11139 xp_type, xp_arg, input_callback);
11140 ex_normal_busy = save_ex_normal_busy;
11141 callback_free(&input_callback);
11142
>>> CID 161216: Memory - illegal accesses (RETURN_LOCAL)
>>> Using "cancelreturn", which points to an out-of-scope variable "def".
11143 if (rettv->vval.v_string == NULL && cancelreturn != NULL) {
11144 rettv->vval.v_string = (char_u *)xstrdup(cancelreturn);
11145 }
11146
11147 xfree(xp_arg);
11148
Diffstat (limited to 'src/nvim/eval/decode.c')
0 files changed, 0 insertions, 0 deletions