diff --git a/channels/console_video.c b/channels/console_video.c index a68a930f8..aa8121505 100644 --- a/channels/console_video.c +++ b/channels/console_video.c @@ -284,7 +284,7 @@ void fbuf_free(struct fbuf_t *b) */ int get_gui_startup(struct video_desc* env) { - return env->stayopen; + return env ? env->stayopen : 0; } #if 0