fixed a small bug in dmenu when an empty font is supplied

master
Anselm R. Garbe 18 years ago
parent f189781bbd
commit aa2f73fc88
  1. 2
      config.mk
  2. 2
      main.c

@ -1,5 +1,5 @@
# dmenu version # dmenu version
VERSION = 3.0 VERSION = 3.1
# Customize below to fit your system # Customize below to fit your system

@ -135,6 +135,8 @@ initfont(const char *fontstr) {
char *def, **missing; char *def, **missing;
int i, n; int i, n;
if(!fontstr || fontstr[0] == '\0')
eprint("error, cannot load font: '%s'\n", fontstr);
missing = NULL; missing = NULL;
if(dc.font.set) if(dc.font.set)
XFreeFontSet(dpy, dc.font.set); XFreeFontSet(dpy, dc.font.set);

Loading…
Cancel
Save