From 357558798c435f1737b13085b30e2e9e7be3616a Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Tue, 20 May 2008 15:07:42 +0100 Subject: foo --- dmenu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dmenu.c b/dmenu.c index 0faa02e..4d23d9d 100644 --- a/dmenu.c +++ b/dmenu.c @@ -728,8 +728,7 @@ main(int argc, char *argv[]) { eprint("usage: dmenu [-i] [-b] [-fn ] [-nb ] [-nf ]\n" " [-p ] [-sb ] [-sf ] [-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); -- cgit v1.2.3-13-gbd6f