fix segmentation fault in font creation

This commit is contained in:
Christoph Weiss 2017-12-24 10:27:41 +01:00 committed by LordReg
parent ea3e6da622
commit cd44d668d6

View file

@ -2927,11 +2927,13 @@ fontset_init(void)
XFreeStringList(missing_charsets);
if (strcmp(default_string, ""))
warnx("Glyphs from those sets will be replaced "
"by '%s'.", default_string);
else
warnx("Glyphs from those sets won't be drawn.");
if(bar_fs && default_string) {
if (strcmp(default_string, ""))
warnx("Glyphs from those sets will be replaced "
"by '%s'.", default_string);
else
warnx("Glyphs from those sets won't be drawn.");
}
}
if (bar_fs == NULL)