aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index d52d537e..071d6497 100644
--- a/interpret.h
+++ b/interpret.h
@@ -1132,6 +1132,7 @@ match_re:
NODE *f = NULL;
int arg_count;
char save;
+ NODE *function_name;
arg_count = (pc + 1)->expr_count;
t1 = PEEK(arg_count); /* indirect var */
@@ -1174,6 +1175,9 @@ match_re:
r = the_func(arg_count);
str_restore(t1, save);
+ function_name = POP(); // pop function name off stack
+ DEREF(function_name);
+
PUSH(r);
break;
} else if (f->type != Node_func) {