mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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
This commit is contained in:
@@ -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
Block a user