xutil: init reply

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-15 17:07:29 +02:00
parent 29361699d2
commit ea4f6298d5
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ xutil_text_prop_get(xcb_connection_t *conn, xcb_window_t w, xcb_atom_t atom,
char **text, ssize_t *len)
{
xcb_get_text_property_reply_t reply;
p_clear(&reply, 1);
if(!xcb_get_text_property_reply(conn,
xcb_get_text_property_unchecked(conn, w,
atom),