sh: Check to make sure we have a stream struct before continuing

Fixes issue #17.
main
Ry 2023-07-13 21:15:04 -07:00
parent ca802706f4
commit 0059493bb2
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ const SET_COLOR: 0xF2
const REDRAW_LINE: 0xFE
pop [shell_stream_struct_ptr]
cmp [shell_stream_struct_ptr], 0
ifz call end_current_task
shell_task_return:
cmp.8 [shell_redirect_next], 0