all repos — slstatus @ 7c11f890a5296ddd527ca956503bb33ceacd3ca9

my build of slstatus (tools.suckless.org/slstatus/)

keyboard_indicators: Clean up opening display
Aaron Marcher me@drkhsh.at
Wed, 02 May 2018 08:26:23 +0200
commit

7c11f890a5296ddd527ca956503bb33ceacd3ca9

parent

b2b6eb638eadcdd5ea091d74f65b1c0a97e0df0a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M components/keyboard_indicators.ccomponents/keyboard_indicators.c

@@ -7,10 +7,10 @@

const char * keyboard_indicators(void) { - Display *dpy = XOpenDisplay(NULL); + Display *dpy; XKeyboardState state; - if (dpy == NULL) { + if (!(dpy = XOpenDisplay(NULL))) { fprintf(stderr, "Cannot open display\n"); return NULL; }