From aa2f73fc88ef3e6946e75bab54a3c0f83f887b3b Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 2 May 2007 15:25:52 +0200 Subject: fixed a small bug in dmenu when an empty font is supplied --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') 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); -- cgit v1.2.3-13-gbd6f