aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-02 15:25:52 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-02 15:25:52 +0200
commitaa2f73fc88ef3e6946e75bab54a3c0f83f887b3b (patch)
tree4445ddb0ca155fc87b58422ecdce4d76dd3c66d3
parentf189781bbd9d6519a31630c857e21407a5dac610 (diff)
fixed a small bug in dmenu when an empty font is supplied
-rw-r--r--config.mk2
-rw-r--r--main.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 5230edb..ce5daab 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dmenu version 1# dmenu version
2VERSION = 3.0 2VERSION = 3.1
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/main.c b/main.c
index c63ac08..e4c4903 100644
--- a/main.c
+++ b/main.c
@@ -135,6 +135,8 @@ initfont(const char *fontstr) {
135 char *def, **missing; 135 char *def, **missing;
136 int i, n; 136 int i, n;
137 137
138 if(!fontstr || fontstr[0] == '\0')
139 eprint("error, cannot load font: '%s'\n", fontstr);
138 missing = NULL; 140 missing = NULL;
139 if(dc.font.set) 141 if(dc.font.set)
140 XFreeFontSet(dpy, dc.font.set); 142 XFreeFontSet(dpy, dc.font.set);