summaryrefslogtreecommitdiff
path: root/src/xcb_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xcb_out.c')
-rw-r--r--src/xcb_out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcb_out.c b/src/xcb_out.c
index 04b8365..2487139 100644
--- a/src/xcb_out.c
+++ b/src/xcb_out.c
@@ -258,7 +258,7 @@ int _xcb_out_write_block(XCBConnection *c, struct iovec *vector, size_t count)
c->out.vec[c->out.vec_len].iov_base = (void *) pad;
c->out.vec[c->out.vec_len++].iov_len = XCB_PAD(vector[i].iov_len);
}
- if(_xcb_out_flush(c) <= 0)
+ if(!_xcb_out_flush(c))
len = -1;
free(c->out.vec);
c->out.vec = 0;