aboutsummaryrefslogtreecommitdiff
path: root/libX11/src
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src')
-rw-r--r--libX11/src/xcb_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/xcb_io.c b/libX11/src/xcb_io.c
index 26e547ee5..db75e4a24 100644
--- a/libX11/src/xcb_io.c
+++ b/libX11/src/xcb_io.c
@@ -151,7 +151,7 @@ static void check_internal_connections(Display *dpy)
static PendingRequest *append_pending_request(Display *dpy, unsigned long sequence)
{
PendingRequest *node = malloc(sizeof(PendingRequest));
- assert(node);
+ assert(node!=NULL);
node->next = NULL;
node->sequence = sequence;
node->reply_waiter = 0;