diff options
Diffstat (limited to 'src/xcb_in.c')
-rw-r--r-- | src/xcb_in.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xcb_in.c b/src/xcb_in.c index cf7dbe7..973a0d2 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -238,6 +238,10 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError ** if(e) *e = 0; + /* If an error occurred when issuing the request, fail immediately. */ + if(!request) + return 0; + pthread_mutex_lock(&c->iolock); /* If this request has not been written yet, write it. */ |