eval: fix pvs/v547

This commit is contained in:
Jan Edmund Lazo 2020-06-08 21:33:12 -04:00
parent ee4265285d
commit e34a7bca68
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -8137,9 +8137,6 @@ void set_argv_var(char **argv, int argc)
list_T *l = tv_list_alloc(argc);
int i;
if (l == NULL) {
getout(1);
}
tv_list_set_lock(l, VAR_FIXED);
for (i = 0; i < argc; i++) {
tv_list_append_string(l, (const char *const)argv[i], -1);