aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authormarkt <markt>2006-06-29 00:03:43 (GMT)
committermarkt <markt>2006-06-29 00:03:43 (GMT)
commit1ddd177d1ab25503d18b94dc458de409de08095d (patch)
tree1f02ee860e1b5236cdb7081266047ccd7004f4f2 /util
parentaad6845c91affaff2abb27fb23b301db7ddbbc1e (diff)
downloadfluxbox-1ddd177d1ab25503d18b94dc458de409de08095d.zip
fluxbox-1ddd177d1ab25503d18b94dc458de409de08095d.tar.bz2
Fix fbsetroot segfault when DISPLAY unset
Diffstat (limited to 'util')
-rw-r--r--util/fbsetroot.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/util/fbsetroot.cc b/util/fbsetroot.cc
index 842e183..24d8c50 100644
--- a/util/fbsetroot.cc
+++ b/util/fbsetroot.cc
@@ -419,8 +419,12 @@ int main(int argc, char **argv) {
419 display_name = argv[i]; 419 display_name = argv[i];
420 } 420 }
421 } 421 }
422 422
423 fbsetroot app(argc, argv, display_name); 423 try {
424 424 fbsetroot app(argc, argv, display_name);
425 } catch (std::string error_str) {
426 cerr<<_FB_CONSOLETEXT(Common, Error, "Error", "Error message header")<<": "<<error_str<<endl;
427 }
428
425 return (0); 429 return (0);
426} 430}