aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-20 15:07:42 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-20 15:07:42 +0100
commit357558798c435f1737b13085b30e2e9e7be3616a (patch)
tree58c485f09f7c369d75d1a5b8ec80e6c2ea5f05cf
parent1f6af5e78f74c80fcb9853dcc2fc7940538808b0 (diff)
foo
-rw-r--r--dmenu.c3
1 files changed, 1 insertions, 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[]) {
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);