Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: unbalanced {push,pop}heap()
- X-seq: zsh-workers 9287
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: unbalanced {push,pop}heap()
- Date: Tue, 11 Jan 2000 09:41:10 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
... in execautofn(). My fault.
Bye
Sven
diff -ru ../z.old/Src/exec.c Src/exec.c
--- ../z.old/Src/exec.c Mon Jan 10 10:53:27 2000
+++ Src/exec.c Tue Jan 11 09:39:47 2000
@@ -2913,6 +2913,7 @@
if (l == &dummy_list) {
zerr("%s: function definition file not found", shf->nam, 0);
+ popheap();
return 1;
}
if (isset(KSHAUTOLOAD)) {
@@ -2922,6 +2923,7 @@
shf = (Shfunc) shfunctab->getnode(shfunctab, n);
if(!shf || (shf->flags & PM_UNDEFINED)) {
zerr("%s: function not defined by file", n, 0);
+ popheap();
return 1;
}
} else {
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author