Fix error checking in call to register_extensions()

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-03-24 21:57:36 +01:00
parent 55961e7d79
commit fbd56b6b75

View file

@ -91,7 +91,7 @@ int xcb_errors_context_new(xcb_connection_t *conn, xcb_errors_context_t **c)
ctx = *c;
ctx->extensions = NULL;
if (!register_extensions(ctx, conn))
if (register_extensions(ctx, conn) != 0)
goto error_out;
return 0;