comparison src/eval.c @ 2690:3ea3dcbf2cd6 v7.3.108

updated for version 7.3.108 Problem: Useless check for NULL when calling vim_free(). Solution: Remove the check. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Tue, 01 Feb 2011 13:48:53 +0100
parents ef7fdb3c6927
children 2bd574a2ef1c
comparison
equal deleted inserted replaced
2689:26fb122355d4 2690:3ea3dcbf2cd6
5104 else if (evaluate) 5104 else if (evaluate)
5105 ret = get_var_tv(s, len, rettv, TRUE); 5105 ret = get_var_tv(s, len, rettv, TRUE);
5106 else 5106 else
5107 ret = OK; 5107 ret = OK;
5108 } 5108 }
5109 5109 vim_free(alias);
5110 if (alias != NULL)
5111 vim_free(alias);
5112 } 5110 }
5113 5111
5114 *arg = skipwhite(*arg); 5112 *arg = skipwhite(*arg);
5115 5113
5116 /* Handle following '[', '(' and '.' for expr[expr], expr.name, 5114 /* Handle following '[', '(' and '.' for expr[expr], expr.name,
19805 ? name[2] : name[0])) 19803 ? name[2] : name[0]))
19806 { 19804 {
19807 EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name); 19805 EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
19808 return; 19806 return;
19809 } 19807 }
19810 /* Don't allow hiding a function. When "v" is not NULL we migth be 19808 /* Don't allow hiding a function. When "v" is not NULL we might be
19811 * assigning another function to the same var, the type is checked 19809 * assigning another function to the same var, the type is checked
19812 * below. */ 19810 * below. */
19813 if (v == NULL && function_exists(name)) 19811 if (v == NULL && function_exists(name))
19814 { 19812 {
19815 EMSG2(_("E705: Variable name conflicts with existing function: %s"), 19813 EMSG2(_("E705: Variable name conflicts with existing function: %s"),