updated for version 7.3.108
Problem: Useless check for NULL when calling vim_free().
Solution: Remove the check. (Dominique Pelle)
diff --git a/src/eval.c b/src/eval.c
index af4ba89..d7e8332 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5106,9 +5106,7 @@
else
ret = OK;
}
-
- if (alias != NULL)
- vim_free(alias);
+ vim_free(alias);
}
*arg = skipwhite(*arg);
@@ -19807,7 +19805,7 @@
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))