The reply type could be XCB_NONE if the property is not present.

Patch from upstreams, pointed out by David Coppa.
This commit is contained in:
matthieu 2010-03-20 07:41:31 +00:00
parent 7b8404708b
commit e18fcadebe

View File

@ -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;