commit | 20798291ca32b17acd757e54ef479b2d6905c84e | [log] [tgz] |
---|---|---|
author | Cyril Brulebois <kibi@debian.org> | Wed Apr 06 18:05:40 2011 +0200 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Apr 07 09:07:33 2011 -0400 |
tree | 89bc301adb96230acd528100966260a1c64ef1eb | |
parent | 8d85e886fc3d578fd3c9b3942b3bd113bb13c622 [diff] |
Check return value of XOpenDisplay(). Instead of calling XGetXCBConnection() blindly, check XOpenDisplay()'s return value to avoid a possible segfault in the former. That happens if $DISPLAY is set, but if that display isn't available. Signed-off-by: Cyril Brulebois <kibi@debian.org>