commit | 9383a3afb6a2b7ba6a2739a66a68cc8e1162f389 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Feb 25 21:35:17 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Feb 25 21:35:17 2022 +0000 |
tree | b1fb74464fc1e6b3783448cce52a97c0d45797f8 | |
parent | 62628d97c4690462ca54781fd16bbfc7ad31477b [diff] [blame] |
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.
diff --git a/src/userfunc.c b/src/userfunc.c index ed2fb86..03b310d 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -4624,7 +4624,7 @@ { char_u *prefixed = may_prefix_autoload(name); - if (prefixed != NULL) + if (prefixed != NULL && prefixed != name) { v = find_var(prefixed, &ht, TRUE); if (v != NULL)