aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
# dmenu version
-VERSION = 3.0
+VERSION = 3.1
# Customize below to fit your system
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) {
char *def, **missing;
int i, n;
+ if(!fontstr || fontstr[0] == '\0')
+ eprint("error, cannot load font: '%s'\n", fontstr);
missing = NULL;
if(dc.font.set)
XFreeFontSet(dpy, dc.font.set);