sh: Check to make sure we have a stream struct before continuing
Fixes issue #17.
This commit is contained in:
parent
ca802706f4
commit
0059493bb2
|
@ -7,6 +7,8 @@ const SET_COLOR: 0xF2
|
||||||
const REDRAW_LINE: 0xFE
|
const REDRAW_LINE: 0xFE
|
||||||
|
|
||||||
pop [shell_stream_struct_ptr]
|
pop [shell_stream_struct_ptr]
|
||||||
|
cmp [shell_stream_struct_ptr], 0
|
||||||
|
ifz call end_current_task
|
||||||
|
|
||||||
shell_task_return:
|
shell_task_return:
|
||||||
cmp.8 [shell_redirect_next], 0
|
cmp.8 [shell_redirect_next], 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user