mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
userfunc: pvs/v547
vim_strsave() returns nonnull.
This commit is contained in:
parent
5571004b69
commit
729f270266
@ -144,10 +144,6 @@ static int get_function_args(char_u **argp, char_u endchar, garray_T *newargs,
|
||||
c = *p;
|
||||
*p = NUL;
|
||||
expr = vim_strsave(expr);
|
||||
if (expr == NULL) {
|
||||
*p = c;
|
||||
goto err_ret;
|
||||
}
|
||||
((char_u **)(default_args->ga_data))
|
||||
[default_args->ga_len] = expr;
|
||||
default_args->ga_len++;
|
||||
|
Loading…
Reference in New Issue
Block a user