tfixed a small bug in dmenu when an empty font is supplied - dmenu - Dmenu fork with xft fonts.
(HTM) git clone git://r-36.net/dmenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit aa2f73fc88ef3e6946e75bab54a3c0f83f887b3b
(DIR) parent f189781bbd9d6519a31630c857e21407a5dac610
(HTM) Author: Anselm R. Garbe <arg@suckless.org>
Date: Wed, 2 May 2007 15:25:52 +0200
fixed a small bug in dmenu when an empty font is supplied
Diffstat:
config.mk | 2 +-
main.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/config.mk b/config.mk
t@@ -1,5 +1,5 @@
# dmenu version
-VERSION = 3.0
+VERSION = 3.1
# Customize below to fit your system
(DIR) diff --git a/main.c b/main.c
t@@ -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);