From 7b27f001862cfd17fb8778151bc709daad5740a0 Mon Sep 17 00:00:00 2001 From: vda Date: Tue, 13 Mar 2007 20:55:36 +0000 Subject: ash: popstackmark is reported trying to pop until NULL is seen (which isn't possible), prevent this. git-svn-id: svn://busybox.net/trunk/busybox@18087 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- shell/ash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index bfa4a8c6d..29156c199 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -1216,6 +1216,9 @@ popstackmark(struct stackmark *mark) { struct stack_block *sp; + if (!mark->stackp) + return; + INT_OFF; markp = mark->marknext; while (stackp != mark->stackp) { -- cgit v1.2.3-55-g6feb