summaryrefslogtreecommitdiff
path: root/src/xcb_in.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-03-03 11:08:10 -0800
committerJamey Sharp <jamey@minilop.net>2006-03-03 11:08:10 -0800
commit29f9fe0fc805a1ec6860f167a45664cc1cf0c769 (patch)
tree1355f5342b580c93ecabd08cbfb9823ab594fd83 /src/xcb_in.c
parent255c21b17f61147388bab6e1d42623a008a4a8d2 (diff)
API/ABI change: XCBSendRequest returns the sequence number instead of using an out-parameter. Now 0 is a special sequence number indicating failure.
Diffstat (limited to 'src/xcb_in.c')
-rw-r--r--src/xcb_in.c4
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. */