From b7fd17d91871e6aeed83e0b9be3d5f3d4534d82b Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Mon, 15 Mar 2010 14:23:20 +0100 Subject: xcb_get_text_property_reply() reply type could be XCB_NONE if the property is not present --- icccm/icccm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icccm/icccm.c b/icccm/icccm.c index f6397fe..c0139e4 100644 --- a/icccm/icccm.c +++ b/icccm/icccm.c @@ -60,7 +60,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; -- cgit v1.2.3