#1188690, fbrun segfault
mathias mathias
2 files changed,
5 insertions(+),
0 deletions(-)
M
src/FbTk/App.cc
→
src/FbTk/App.cc
@@ -51,6 +51,8 @@ // a blank string, rather than a null string, so we make them equivalent
if (displayname != 0 && displayname[0] == '\0') displayname = 0; m_display = XOpenDisplay(displayname); + if (!m_display) + throw std::string("Couldn't connect to XServer"); Font::init(); Image::init();