diff options
author | phintuka <phintuka> | 2011-03-19 20:25:31 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2011-03-19 20:25:31 +0000 |
commit | c8ca21a37ef4d08a9dfefdd1456a1dd6cbe5da91 (patch) | |
tree | 3140a0c523f963c6e6d58e93c942c70dede7349a | |
parent | 1197bf86ba8c3d6703ace5c4252a6b04ad0f2e0d (diff) | |
download | xineliboutput-c8ca21a37ef4d08a9dfefdd1456a1dd6cbe5da91.tar.gz xineliboutput-c8ca21a37ef4d08a9dfefdd1456a1dd6cbe5da91.tar.bz2 |
display address (video_port) can be shorter than 3
-rw-r--r-- | xine_sxfe_frontend.c | 4 |
1 files 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); |