From c8ca21a37ef4d08a9dfefdd1456a1dd6cbe5da91 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 19 Mar 2011 20:25:31 +0000 Subject: display address (video_port) can be shorter than 3 --- xine_sxfe_frontend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index 83431165..a51217eb 100644 --- a/xine_sxfe_frontend.c +++ b/xine_sxfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_sxfe_frontend.c,v 1.156 2011-03-19 17:24:51 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.157 2011-03-19 20:25:31 phintuka Exp $ * */ @@ -1317,7 +1317,7 @@ static void disable_DPMS(sxfe_t *this) */ static int open_display(sxfe_t *this, const char *video_port) { - if (video_port && strlen(video_port)>2) { + if (video_port && *video_port) { if (!(this->display = XOpenDisplay(video_port))) LOGERR("sxfe_display_open: failed to connect to X server (%s)", video_port); -- cgit v1.2.3