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: http://svn.digium.com/svn/asterisk/trunk@127330 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
be7943fe77
commit
c3d6c0bc6d
|
@ -284,7 +284,7 @@ void fbuf_free(struct fbuf_t *b)
|
||||||
*/
|
*/
|
||||||
int get_gui_startup(struct video_desc* env)
|
int get_gui_startup(struct video_desc* env)
|
||||||
{
|
{
|
||||||
return env->stayopen;
|
return env ? env->stayopen : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Reference in New Issue