[asterisk-commits] rizzo: trunk r127330 - /trunk/channels/console_video.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 2 04:16:30 CDT 2008


Author: rizzo
Date: Wed Jul  2 04:16:29 2008
New Revision: 127330

URL: http://svn.digium.com/view/asterisk?view=rev&rev=127330
Log:
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).


Modified:
    trunk/channels/console_video.c

Modified: trunk/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/console_video.c?view=diff&rev=127330&r1=127329&r2=127330
==============================================================================
--- trunk/channels/console_video.c (original)
+++ trunk/channels/console_video.c Wed Jul  2 04:16:29 2008
@@ -284,7 +284,7 @@
  */
 int get_gui_startup(struct video_desc* env)
 {
-	return env->stayopen;
+	return env ? env->stayopen : 0;
 }
 
 #if 0




More information about the asterisk-commits mailing list