diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-02 09:16:29 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-02 09:16:29 +0000 |
commit | c3d6c0bc6da8fd91a577fda5ae30261911333ee9 (patch) | |
tree | 6c25a0a5325352addcffdc8804f3f604b9695875 /channels/console_video.c | |
parent | be7943fe7788691d5c61cfb530786dba04dbb7d6 (diff) |
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
Diffstat (limited to 'channels/console_video.c')
-rw-r--r-- | channels/console_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |