aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-13 20:55:36 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-13 20:55:36 +0000
commit7b27f001862cfd17fb8778151bc709daad5740a0 (patch)
treeece2324b60dc54b224061a0a29b25b995236b360 /shell
parentbf07ea7cef9740b0f10121a8e39965d4f7c7f0e2 (diff)
downloadbusybox-w32-7b27f001862cfd17fb8778151bc709daad5740a0.tar.gz
busybox-w32-7b27f001862cfd17fb8778151bc709daad5740a0.tar.bz2
busybox-w32-7b27f001862cfd17fb8778151bc709daad5740a0.zip
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
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c3
1 files changed, 3 insertions, 0 deletions
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)
1216{ 1216{
1217 struct stack_block *sp; 1217 struct stack_block *sp;
1218 1218
1219 if (!mark->stackp)
1220 return;
1221
1219 INT_OFF; 1222 INT_OFF;
1220 markp = mark->marknext; 1223 markp = mark->marknext;
1221 while (stackp != mark->stackp) { 1224 while (stackp != mark->stackp) {