summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-03-20 07:41:32 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-03-20 07:41:32 +0000
commit95da70021b2d2c7f4247b805309a56982a987fc5 (patch)
tree918df8f188fdfeebae80231b3f48576e9361190f /dist
parentc3dc3226c4fc0b761dea972eb227aaea5c7c0044 (diff)
The reply type could be XCB_NONE if the property is not present.
Patch from upstreams, pointed out by David Coppa.
Diffstat (limited to 'dist')
-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;