Correctly check error

This commit is contained in:
Dave Davenport 2016-03-03 16:02:14 +01:00
parent ba0b2379a6
commit fe8aa55fdc
1 changed files with 3 additions and 2 deletions

View File

@ -632,10 +632,11 @@ int main ( int argc, char *argv[] )
xcb->screen = xcb_aux_get_screen ( xcb->connection, xcb->screen_nbr );
xcb_intern_atom_cookie_t *ac = xcb_ewmh_init_atoms ( xcb->connection, &xcb->ewmh );
xcb_generic_error_t **errors = NULL;
xcb_ewmh_init_atoms_replies ( &xcb->ewmh, ac, errors );
xcb_generic_error_t *errors = NULL;
xcb_ewmh_init_atoms_replies ( &xcb->ewmh, ac, &errors );
if ( errors ) {
fprintf ( stderr, "Failed to create EWMH atoms\n" );
free(errors);
}
if ( xkb_x11_setup_xkb_extension ( xcb->connection, XKB_X11_MIN_MAJOR_XKB_VERSION, XKB_X11_MIN_MINOR_XKB_VERSION,