From fa2cc0c080b5a1f00aa5802c47ed052b991e41e2 Mon Sep 17 00:00:00 2001 From: jacekpoplawski Date: Sat, 19 Jun 2010 10:07:43 -0600 Subject: [PATCH] avoid crash on Olympus E-1 --- rtexif/rtexif.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtexif/rtexif.cc b/rtexif/rtexif.cc index 77c7028cf..5af1de241 100644 --- a/rtexif/rtexif.cc +++ b/rtexif/rtexif.cc @@ -583,7 +583,9 @@ Tag::Tag (TagDirectory* p, FILE* f, int base) }else if(type==UNDEFINED){ count = 1; type = LONG; + directory = new TagDirectory*[2]; directory[0] = new TagDirectory (parent, f, base, attrib->subdirAttribs, getOrder()); + directory[1] = NULL; }else goto defsubdirs; }