Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 253a1c8fd5fcfd81e33bbaa6330f699e > files > 2

exiv2-0.26-2.2.mga6.src.rpm

http://dev.exiv2.org/issues/1305
Index: exiv2-0.26/src/pentaxmn.cpp
===================================================================
--- exiv2-0.26/src/pentaxmn.cpp
+++ exiv2-0.26/src/pentaxmn.cpp	2017-10-24 11:34:45.756609611 -0400
@@ -1167,6 +1167,8 @@
 
     std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata)
     {
+        if ( ! metadata ) return os << "undefined" ;
+
         ExifData::const_iterator dateIt = metadata->findKey(
                 ExifKey("Exif.PentaxDng.Date"));
         if (dateIt == metadata->end()) {