Quellcode durchsuchen

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

master
Anselm R. Garbe vor 17 Jahren
Ursprung
Commit
aa2f73fc88
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      config.mk
  2. +2
    -0
      main.c

+ 1
- 1
config.mk Datei anzeigen

@@ -1,5 +1,5 @@
# dmenu version
VERSION = 3.0
VERSION = 3.1

# Customize below to fit your system



+ 2
- 0
main.c Datei anzeigen

@@ -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);


Laden…
Abbrechen
Speichern