diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-05-02 15:25:52 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-05-02 15:25:52 +0200 |
commit | aa2f73fc88ef3e6946e75bab54a3c0f83f887b3b (patch) | |
tree | 4445ddb0ca155fc87b58422ecdce4d76dd3c66d3 /main.c | |
parent | f189781bbd9d6519a31630c857e21407a5dac610 (diff) |
fixed a small bug in dmenu when an empty font is supplied
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |