userfunc: pvs/v547

vim_strsave() returns nonnull.
This commit is contained in:
Jan Edmund Lazo 2021-06-05 10:18:15 -04:00
parent 5571004b69
commit 729f270266
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -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++;