From: Anselm R Garbe Date: Tue, 20 May 2008 14:07:42 +0000 (+0100) Subject: foo X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=357558798c435f1737b13085b30e2e9e7be3616a;p=dmenu.git foo --- 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);