From ed5234b58e5458f156616fd1c160f364ed1eba7a Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <Arnaud Fontaine arnau@debian.org>
Date: Wed, 10 Mar 2010 16:31:57 +0000
Subject: [PATCH] The reply type could be XCB_NONE if the property is not present

---
 icccm/icccm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/icccm/icccm.c b/icccm/icccm.c
index 0206e4b..f94ace1 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;
-- 
1.7.0


