[Xcb-commit] icccm

Arnaud Fontaine arnau at kemper.freedesktop.org
Mon Mar 15 06:23:57 PDT 2010


 icccm/icccm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7884d58a75de2ae9e97c85317fa68d3b2492f0d4
Author: Arnaud Fontaine <Arnaud Fontaine arnau at debian.org>
Date:   Mon Mar 15 14:23:20 2010 +0100

    xcb_get_text_property_reply() reply type could be XCB_NONE if the property is not present

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;


More information about the xcb-commit mailing list