Skip to content
Snippets Groups Projects
Commit f26e7b97 authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

prevent a segfault when trying to start the gui without any

specific configuration in oss.conf
(reported by Klaus Darillion on the -video mailing list).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent cce1ec54
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment