mirror of
https://github.com/mirror/make.git
synced 2026-08-09 17:38:47 +00:00
Fix eval bugs 1516 and 1517.
This commit is contained in:
10
function.c
10
function.c
@@ -1196,8 +1196,18 @@ func_wildcard (char *o, char **argv, const char *funcname)
|
||||
static char *
|
||||
func_eval (char *o, char **argv, const char *funcname)
|
||||
{
|
||||
char *buf;
|
||||
unsigned int len;
|
||||
|
||||
/* Eval the buffer. Pop the current variable buffer setting so that the
|
||||
eval'd code can use its own without conflicting. */
|
||||
|
||||
install_variable_buffer (&buf, &len);
|
||||
|
||||
eval_buffer (argv[0]);
|
||||
|
||||
restore_variable_buffer (buf, len);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user