mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
userfunc: pvs/v547
vim_strsave() returns nonnull.
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user