diff options
-rw-r--r-- | dmenu.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -728,8 +728,7 @@ main(int argc, char *argv[]) { | |||
728 | eprint("usage: dmenu [-i] [-b] [-fn <font>] [-nb <color>] [-nf <color>]\n" | 728 | eprint("usage: dmenu [-i] [-b] [-fn <font>] [-nb <color>] [-nf <color>]\n" |
729 | " [-p <prompt>] [-sb <color>] [-sf <color>] [-v]\n"); | 729 | " [-p <prompt>] [-sb <color>] [-sf <color>] [-v]\n"); |
730 | setlocale(LC_CTYPE, ""); | 730 | setlocale(LC_CTYPE, ""); |
731 | dpy = XOpenDisplay(0); | 731 | if(!(dpy = XOpenDisplay(0))) |
732 | if(!dpy) | ||
733 | eprint("dmenu: cannot open display\n"); | 732 | eprint("dmenu: cannot open display\n"); |
734 | screen = DefaultScreen(dpy); | 733 | screen = DefaultScreen(dpy); |
735 | root = RootWindow(dpy, screen); | 734 | root = RootWindow(dpy, screen); |