mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Reset sh.arithrecursion in sh_exit() instead (re: d50d3d7c
)
Since the arithmetic recursion level only becomes incorrect when an error interrupts the arithmetic subsystem, and all such error messages call sh_exit(), it should be good enough to reset it there, so we don't need to do that for nearly every sh_exec() run.
This commit is contained in:
parent
27ccdd2517
commit
f3433a696a
2 changed files with 1 additions and 4 deletions
|
@ -580,6 +580,7 @@ void sh_exit(register int xno)
|
|||
sfclrlock(sfstdin);
|
||||
if(!pp)
|
||||
sh_done(shp,sig);
|
||||
shp->arithrecursion = 0;
|
||||
shp->prefix = 0;
|
||||
#if SHOPT_TYPEDEF
|
||||
shp->mktype = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue