Skip to content

Commit

Permalink
Patch from Denis Gantsev
Browse files Browse the repository at this point in the history
Fluxbox would segfault when no fonts were available. Now it just exits with an error.
  • Loading branch information
mark-t committed Jul 6, 2021
1 parent ee9c0a3 commit 43ae328
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FbTk/Font.cc
Expand Up @@ -43,6 +43,7 @@
#include <map>
#include <typeinfo>
#include <langinfo.h>
#include <iostream>

#ifdef HAVE_SETLOCALE
#include <locale.h>
Expand Down Expand Up @@ -231,6 +232,9 @@ bool Font::load(const string &name) {
m_fontstr = name;
resetEffects(*this);
return true;
} else {
std::cerr << "Couldn't initialize fonts. Check your fontconfig installation.\n";
exit(1);
}

delete tmp_font;
Expand Down

0 comments on commit 43ae328

Please sign in to comment.