diff --git a/channels/console_video.c b/channels/console_video.c index a68a930f8708c5a93e9f7ff9bebe757966662c51..aa81215059ba7436ec35b00c47594814b1dc26e9 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