1
0
This commit is contained in:
Anselm R Garbe 2008-05-20 15:07:42 +01:00
parent fcbababeea
commit 48193a5601

View File

@ -728,8 +728,7 @@ main(int argc, char *argv[]) {
eprint("usage: dmenu [-i] [-b] [-fn <font>] [-nb <color>] [-nf <color>]\n"
" [-p <prompt>] [-sb <color>] [-sf <color>] [-v]\n");
setlocale(LC_CTYPE, "");
dpy = XOpenDisplay(0);
if(!dpy)
if(!(dpy = XOpenDisplay(0)))
eprint("dmenu: cannot open display\n");
screen = DefaultScreen(dpy);
root = RootWindow(dpy, screen);