ash: popstackmark is reported trying to pop until NULL

is seen (which isn't possible), prevent this.
This commit is contained in:
Denis Vlasenko 2007-03-13 20:55:36 +00:00
parent 5df955fce2
commit 93ebd4f58d

View File

@ -1216,6 +1216,9 @@ popstackmark(struct stackmark *mark)
{ {
struct stack_block *sp; struct stack_block *sp;
if (!mark->stackp)
return;
INT_OFF; INT_OFF;
markp = mark->marknext; markp = mark->marknext;
while (stackp != mark->stackp) { while (stackp != mark->stackp) {