diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 57c0822fb..f9866235d 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3798,6 +3798,8 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval) } #endif fstack.name = dupstring(name); + fstack.caller = dupstring(oargv0 ? oargv0 : argzero); + fstack.lineno = lineno; fstack.prev = funcstack; funcstack = &fstack; |