Permalink
Browse files

fix segmentation fault in font creation

  • Loading branch information...
WSoptics authored and LordReg committed Dec 24, 2017
1 parent ea3e6da commit cd44d668d68209dd4e48eb63a7fcfe277d287160
Showing with 7 additions and 5 deletions.
  1. +7 −5 spectrwm.c
View
@@ -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)

0 comments on commit cd44d66

Please sign in to comment.