xutil: set text and len even if we ignore them

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-31 08:41:27 +02:00
parent 1ed65aabdd
commit 1a544726e1
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ xutil_text_prop_get(xcb_connection_t *conn, xcb_window_t w, xcb_atom_t atom,
(*text)[prop_r->value_len] = '\0';
*len = prop_r->value_len;
}
else
{
*text = NULL;
*len = 0;
}
p_delete(&prop_r);
return true;