Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git] / src / lib / util.cc
index 0a6f381db8adf23cd7c8028e3dd2cc624f49d575..807883ca0906ffc787ff8da0f54533c50566df9e 100644 (file)
@@ -287,9 +287,8 @@ set_backtrace_file (boost::filesystem::path p)
 void
 terminate ()
 {
-       static bool tried_throw = false;
-
        try {
+               static bool tried_throw = false;
                // try once to re-throw currently active exception
                if (!tried_throw) {
                        tried_throw = true;