changeset: 197:8665d6b09b7d
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Wed May 02 15:25:52 2007 +0200
summary: fixed a small bug in dmenu when an empty font is supplied
diff -r 7adbea7c65c4 -r 8665d6b09b7d config.mk
--- a/config.mk Thu Apr 19 09:27:08 2007 +0200
+++ b/config.mk Wed May 02 15:25:52 2007 +0200
@@ -1,5 +1,5 @@
# dmenu version
-VERSION = 3.0
+VERSION = 3.1
# Customize below to fit your system
diff -r 7adbea7c65c4 -r 8665d6b09b7d main.c
--- a/main.c Thu Apr 19 09:27:08 2007 +0200
+++ b/main.c Wed May 02 15:25:52 2007 +0200
@@ -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);
Received on Wed May 02 2007 - 15:29:24 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:43 UTC