From 2d30e58ccd14ae707afcc311f49e32fe6d6d4061 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Thu, 12 Oct 2006 23:42:50 -0700 Subject: [PATCH] XCB: update cairo-boilerplate to test for an error connection rather than NULL. --- boilerplate/cairo-boilerplate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c index a2599294c..1af6e8976 100644 --- a/boilerplate/cairo-boilerplate.c +++ b/boilerplate/cairo-boilerplate.c @@ -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; }