]> git.armaanb.net Git - dmenu.git/commitdiff
fixed a small bug in dmenu when an empty font is supplied
authorAnselm R. Garbe <arg@suckless.org>
Wed, 2 May 2007 13:25:52 +0000 (15:25 +0200)
committerAnselm R. Garbe <arg@suckless.org>
Wed, 2 May 2007 13:25:52 +0000 (15:25 +0200)
config.mk
main.c

index 5230edb82648a83faaf2aadb765d39044bad6a00..ce5daabf0cf116f53ce5e8e3bccffa69ac264709 100644 (file)
--- 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 c63ac08a07710cfbf819ffce0883ad41dc51ee0c..e4c490336814ef8c8b7153320a67bc5eef1fd4dc 100644 (file)
--- 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);