summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/xcb-util/icccm/icccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/xcb-util/icccm/icccm.c b/dist/xcb-util/icccm/icccm.c
index efae28cfe..74383a05f 100644
--- a/dist/xcb-util/icccm/icccm.c
+++ b/dist/xcb-util/icccm/icccm.c
@@ -58,7 +58,7 @@ xcb_get_text_property_reply(xcb_connection_t *c,
{
xcb_get_property_reply_t *reply = xcb_get_property_reply(c, cookie, e);
- if(!reply)
+ if(!reply || reply->type == XCB_NONE)
return 0;
prop->_reply = reply;