[Xcb] [PATCH 2/2] xcb_get_setup(): Never return NULL

Peter Harris pharris at opentext.com
Mon Aug 25 16:18:20 PDT 2014


On 2014-08-18 04:38, Uli Schlachter wrote:
> The documentation doesn't mention it and it's unlikely that a lot of code out
> there handles this case correctly. So, instead of returning NULL, let
> xcb_get_setup() return a pointer to a static, invalid, all-zero setup
> information structure.
> 
> Signed-off-by: Uli Schlachter <psychon at znc.in>
> ---

Pushed the series.

Thanks,
 Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866


More information about the Xcb mailing list