Fix fbsetroot segfault when DISPLAY unset
markt markt
2 files changed,
10 insertions(+),
3 deletions(-)
M
util/fbsetroot.cc
→
util/fbsetroot.cc
@@ -419,8 +419,12 @@
display_name = argv[i]; } } - - fbsetroot app(argc, argv, display_name); - + + try { + fbsetroot app(argc, argv, display_name); + } catch (std::string error_str) { + cerr<<_FB_CONSOLETEXT(Common, Error, "Error", "Error message header")<<": "<<error_str<<endl; + } + return (0); }