Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: unbalanced {push,pop}heap()



... 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