xcb_get_property_reply returning trash

Steven J Abner pheonix.sja at att.net
Fri Sep 20 11:14:40 UTC 2024


On Fri, Sep 20 2024 at 05:02:17 AM +0000, Uli Schlachter 
<psychon at znc.in> wrote:
> So how exactly are you checking the reply that you get? Do you look 
> at the length of the reply (reply->value_len or 
> xcb_get_property_value_length(reply))? Do you check e.g. reply->type 
> or reply->format?

 You're bloody brilliant! A step I didn't think about because I thought 
too simple.
A format=0, length=0, type=0, value_length=0, pick one, any card, I 
lose.
 One last brain pick, related since on errors, mine!. Even though I 
normally check for reply == NULL, I occasionally use the error return. 
I can't find examples, but the question: does an error response (!= 
NULL) belong to me such that I need to free it?
 May great things come your way, thank you, thank you.
Steve




More information about the Xcb mailing list