xcb_get_setup(): Never return NULL
authorUli Schlachter <psychon@znc.in>
Mon, 18 Aug 2014 08:38:48 +0000 (10:38 +0200)
committerPeter Harris <pharris@opentext.com>
Mon, 25 Aug 2014 23:15:34 +0000 (19:15 -0400)
commitb0e6c2de09c7474868dd7185674fa113a5c2e0aa
tree72967b3fbc9ebfe2f88c4466645a61e8c52d6ba6
parentc4e40f646b8da4fd112ea54a612c880be5e942a8
xcb_get_setup(): Never return NULL

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@znc.in>
src/xcb_conn.c