0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.3.108

Problem:    Useless check for NULL when calling vim_free().
Solution:   Remove the check. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2011-02-01 13:48:53 +01:00
parent 5e3d6ca435
commit 3c2d6534ef
4 changed files with 6 additions and 7 deletions

View File

@@ -5106,9 +5106,7 @@ eval7(arg, rettv, evaluate, want_string)
else
ret = OK;
}
if (alias != NULL)
vim_free(alias);
vim_free(alias);
}
*arg = skipwhite(*arg);
@@ -19807,7 +19805,7 @@ set_var(name, tv, copy)
EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
return;
}
/* Don't allow hiding a function. When "v" is not NULL we migth be
/* Don't allow hiding a function. When "v" is not NULL we might be
* assigning another function to the same var, the type is checked
* below. */
if (v == NULL && function_exists(name))