mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-04 11:00:21 +01:00
XCB: update cairo-boilerplate to test for an error connection rather than NULL.
This commit is contained in:
parent
02e7b892bc
commit
2d30e58ccd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue