comparison src/userfunc.c @ 27893:8e630053c59c v8.2.4472

patch 8.2.4472: Coverity warns for use of a freed function name Commit: https://github.com/vim/vim/commit/9383a3afb6a2b7ba6a2739a66a68cc8e1162f389 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 21:35:17 2022 +0000 patch 8.2.4472: Coverity warns for use of a freed function name Problem: Coverity warns for use of a freed function name. Solution: Only check an autoload name when is prefixed.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:45:03 +0100
parents 6a0ecde89d35
children 442ca2007bec
comparison
equal deleted inserted replaced
27892:71a9bedd8211 27893:8e630053c59c
4622 } 4622 }
4623 else 4623 else
4624 { 4624 {
4625 char_u *prefixed = may_prefix_autoload(name); 4625 char_u *prefixed = may_prefix_autoload(name);
4626 4626
4627 if (prefixed != NULL) 4627 if (prefixed != NULL && prefixed != name)
4628 { 4628 {
4629 v = find_var(prefixed, &ht, TRUE); 4629 v = find_var(prefixed, &ht, TRUE);
4630 if (v != NULL) 4630 if (v != NULL)
4631 var_conflict = TRUE; 4631 var_conflict = TRUE;
4632 vim_free(prefixed); 4632 vim_free(prefixed);