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) {