Blame SOURCES/exiv2-fix-1305.patch

Pablo Greco add715
From 5405d61623e82896e498c5c8342dd6f42e689115 Mon Sep 17 00:00:00 2001
Pablo Greco add715
From: clanmills <robin@clanmills.com>
Pablo Greco add715
Date: Tue, 12 Sep 2017 09:14:42 +0100
Pablo Greco add715
Subject: [PATCH] Fix http://dev.exiv2.org/issues/1305
Pablo Greco add715
Pablo Greco add715
---
Pablo Greco add715
 src/pentaxmn.cpp | 2 ++
Pablo Greco add715
 1 file changed, 2 insertions(+)
Pablo Greco add715
Pablo Greco add715
diff --git a/src/pentaxmn.cpp b/src/pentaxmn.cpp
Pablo Greco add715
index 4fc38be0a..b22cb43b6 100644
Pablo Greco add715
--- a/src/pentaxmn.cpp
Pablo Greco add715
+++ b/src/pentaxmn.cpp
Pablo Greco add715
@@ -1167,6 +1167,8 @@ namespace Exiv2 {
Pablo Greco add715
 
Pablo Greco add715
     std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata)
Pablo Greco add715
     {
Pablo Greco add715
+        if ( ! metadata ) return os << "undefined" ;
Pablo Greco add715
+
Pablo Greco add715
         ExifData::const_iterator dateIt = metadata->findKey(
Pablo Greco add715
                 ExifKey("Exif.PentaxDng.Date"));
Pablo Greco add715
         if (dateIt == metadata->end()) {