From 72c0002b45215466e06cd901fe95d9493d659ab2 Mon Sep 17 00:00:00 2001 From: Charles Milette Date: Sat, 19 May 2018 19:18:26 -0400 Subject: Catch C++ exceptions by const reference Fixes #2277 --- libraries/pack200/anti200.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries/pack200') diff --git a/libraries/pack200/anti200.cpp b/libraries/pack200/anti200.cpp index 944e80e5..0fa3d3e6 100644 --- a/libraries/pack200/anti200.cpp +++ b/libraries/pack200/anti200.cpp @@ -32,7 +32,7 @@ int main(int argc, char **argv) { unpack_200(input, output); } - catch (std::runtime_error &e) + catch (const std::runtime_error &e) { std::cerr << "Bad things happened: " << e.what() << std::endl; fclose(input); -- cgit