about summary refs log tree commit diff
path: root/main.c
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 /main.c
parentAdded tag 3.0 for changeset 59b3024854db (diff)
downloaddmenu-aa2f73fc88ef3e6946e75bab54a3c0f83f887b3b.tar.gz
dmenu-aa2f73fc88ef3e6946e75bab54a3c0f83f887b3b.tar.bz2
dmenu-aa2f73fc88ef3e6946e75bab54a3c0f83f887b3b.zip
fixed a small bug in dmenu when an empty font is supplied
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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);