[gexiv2] Catch exception by reference



commit 841e23c6f1f18f6404140688abc5eec3afb61a21
Author: Jens Georg <mail jensge org>
Date:   Tue May 24 20:27:04 2016 +0200

    Catch exception by reference
    
    Found by Coverity (CID: 112500)
    
    Signed-off-by: Jens Georg <mail jensge org>

 gexiv2/gexiv2-metadata.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gexiv2/gexiv2-metadata.cpp b/gexiv2/gexiv2-metadata.cpp
index f376dac..3d3c7fb 100644
--- a/gexiv2/gexiv2-metadata.cpp
+++ b/gexiv2/gexiv2-metadata.cpp
@@ -312,7 +312,7 @@ gboolean gexiv2_metadata_save_file (GExiv2Metadata *self, const gchar *path, GEr
     
     try {
         return gexiv2_metadata_save_internal (self, Exiv2::ImageFactory::open (path), error);
-    } catch (Exiv2::Error e) {
+    } catch (Exiv2::Error &e) {
         g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), e.what ());
     }
     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]