Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git] / src / tools / dcpomatic_server_cli.cc
index b816460a3376daadea18467caf49fb5e1a20ffd9..80f4a0d0c339677dd46a528a2f171cad5e23ba01 100644 (file)
@@ -112,7 +112,7 @@ main (int argc, char* argv[])
        
        try {
                server.run (num_threads);
-       } catch (boost::system::system_error e) {
+       } catch (boost::system::system_error& e) {
                if (e.code() == boost::system::errc::address_in_use) {
                        cerr << argv[0] << ": address already in use.  Is another DCP-o-matic server instance already running?\n";
                        exit (EXIT_FAILURE);