From a112eeb4d052b1212f94e95efd83a215213da691 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 Jan 2015 22:52:13 +0000 Subject: Small fixes and tidy-ups spotted by cppcheck. --- src/tools/dcpomatic_server_cli.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/dcpomatic_server_cli.cc') diff --git a/src/tools/dcpomatic_server_cli.cc b/src/tools/dcpomatic_server_cli.cc index b816460a3..80f4a0d0c 100644 --- a/src/tools/dcpomatic_server_cli.cc +++ b/src/tools/dcpomatic_server_cli.cc @@ -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); -- cgit v1.2.3