XCB: update cairo-boilerplate to test for an error connection rather than NULL.

This commit is contained in:
Jamey Sharp 2006-10-12 23:42:50 -07:00
parent 02e7b892bc
commit 2d30e58ccd

View file

@ -810,7 +810,7 @@ create_xcb_surface (const char *name,
height = 1;
xtc->c = c = xcb_connect(NULL,NULL);
if (c == NULL) {
if (xcb_connection_has_error(c)) {
CAIRO_BOILERPLATE_LOG ("Failed to connect to X server through XCB\n");
return NULL;
}