X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_util.c;h=e08a3205f37efbe647ba37d3d6918cd4599a6762;hb=56962e42a509dc4d0d9541e46b93689dac61c4fd;hp=2be59d2f9bf55587e093f2e7182f43f57cef6378;hpb=0e0c80e749eccf121e55c1e855c48d03b54f33ef;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_util.c b/src/xcb_util.c index 2be59d2..e08a320 100644 --- a/src/xcb_util.c +++ b/src/xcb_util.c @@ -180,10 +180,10 @@ static int _xcb_open(char *host, char *protocol, const int display) fd = _xcb_open_abstract(protocol, file, filelen); if (fd >= 0 || (errno != ENOENT && errno != ECONNREFUSED)) return fd; - #endif return _xcb_open_unix(protocol, file); #endif /* !_WIN32 */ + return -1; /* if control reaches here then something has gone wrong */ } static int _xcb_socket(int family, int type, int proto)