mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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.
This commit is contained in:
@@ -4624,7 +4624,7 @@ define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free)
|
|||||||
{
|
{
|
||||||
char_u *prefixed = may_prefix_autoload(name);
|
char_u *prefixed = may_prefix_autoload(name);
|
||||||
|
|
||||||
if (prefixed != NULL)
|
if (prefixed != NULL && prefixed != name)
|
||||||
{
|
{
|
||||||
v = find_var(prefixed, &ht, TRUE);
|
v = find_var(prefixed, &ht, TRUE);
|
||||||
if (v != NULL)
|
if (v != NULL)
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4472,
|
||||||
/**/
|
/**/
|
||||||
4471,
|
4471,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user