]> git.sesse.net Git - vlc/commitdiff
fix #1382
authorRafaël Carré <funman@videolan.org>
Thu, 6 Dec 2007 01:20:26 +0000 (01:20 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 6 Dec 2007 01:20:26 +0000 (01:20 +0000)
modules/gui/qt4/qt4.cpp

index 6f1ad1e3010a77be3523a71dbf332d817a5d2dac..686456bda33e91fa961b5a554b35ea21c7beb5ff 100644 (file)
@@ -177,7 +177,8 @@ static int Open( vlc_object_t *p_this )
     intf_thread_t *p_intf = (intf_thread_t *)p_this;
     p_intf->pf_run = Run;
 #if defined HAVE_GETENV && defined Q_WS_X11
-    if( !getenv( "DISPLAY" ) )
+    char *psz_display = getenv( "DISPLAY" );
+    if( !psz_display || !*psz_display )
     {
         msg_Err(p_intf, "no X server");
         return VLC_EGENERIC;