svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Tue Mar 13 20:55:38 UTC 2007


Author: vda
Date: 2007-03-13 13:55:36 -0700 (Tue, 13 Mar 2007)
New Revision: 18087

Log:
ash: popstackmark is reported trying to pop until NULL
is seen (which isn't possible), prevent this.


Modified:
   trunk/busybox/shell/ash.c


Changeset:
Modified: trunk/busybox/shell/ash.c
===================================================================
--- trunk/busybox/shell/ash.c	2007-03-13 18:34:52 UTC (rev 18086)
+++ trunk/busybox/shell/ash.c	2007-03-13 20:55:36 UTC (rev 18087)
@@ -1216,6 +1216,9 @@
 {
 	struct stack_block *sp;
 
+	if (!mark->stackp)
+		return;
+
 	INT_OFF;
 	markp = mark->marknext;
 	while (stackp != mark->stackp) {




More information about the busybox-cvs mailing list