diff options
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | main.c | 2 |
2 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # dmenu version | 1 | # dmenu version |
| 2 | VERSION = 3.0 | 2 | VERSION = 3.1 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -135,6 +135,8 @@ initfont(const char *fontstr) { | |||
| 135 | char *def, **missing; | 135 | char *def, **missing; |
| 136 | int i, n; | 136 | int i, n; |
| 137 | 137 | ||
| 138 | if(!fontstr || fontstr[0] == '\0') | ||
| 139 | eprint("error, cannot load font: '%s'\n", fontstr); | ||
| 138 | missing = NULL; | 140 | missing = NULL; |
| 139 | if(dc.font.set) | 141 | if(dc.font.set) |
| 140 | XFreeFontSet(dpy, dc.font.set); | 142 | XFreeFontSet(dpy, dc.font.set); |
