diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-13 20:55:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-13 20:55:36 +0000 |
commit | 93ebd4f58dceab85f377e0251503af8d7c57e699 (patch) | |
tree | ece2324b60dc54b224061a0a29b25b995236b360 /shell | |
parent | 5df955fce2fbdc5b2acc365a120327ff943403da (diff) | |
download | busybox-93ebd4f58dceab85f377e0251503af8d7c57e699.tar.gz |
ash: popstackmark is reported trying to pop until NULL
is seen (which isn't possible), prevent this.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 3 |
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) { struct stack_block *sp; + if (!mark->stackp) + return; + INT_OFF; markp = mark->marknext; while (stackp != mark->stackp) { |