From: Aaron Marcher Date: Fri, 11 Aug 2017 12:33:02 +0000 (+0200) Subject: Fixed possible NULL-deref and removed unnecessary XOpenDisplay() X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/6f011743921db04e5513df45c5ac4b2c752d52de?ds=sidebyside;hp=6f011743921db04e5513df45c5ac4b2c752d52de Fixed possible NULL-deref and removed unnecessary XOpenDisplay() - Added a check for the return value of XOpenDisplay() in main(). This fixes a possible NULL-deref. - Removed unnsecessary XOpenDisplay and XCloseDisplay from keyboard_indicators(). The ones in main() are sufficent. ---