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:
parent
7b8404708b
commit
e18fcadebe
2
dist/xcb-util/icccm/icccm.c
vendored
2
dist/xcb-util/icccm/icccm.c
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user