Added a NULL pointer check to attempt to keep Coverity Scan happy
authorDan Fandrich <dan@coneharvesters.com>
Mon, 18 Apr 2011 23:46:33 +0000 (16:46 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 18 Apr 2011 23:46:33 +0000 (16:46 -0700)
libexif/olympus/mnote-olympus-entry.c

index 9db5224..0186b4f 100644 (file)
@@ -287,6 +287,9 @@ mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int m
        if ((!entry->data) && (entry->components > 0)) 
                return (v);
 
+       if ((!entry->data) && (entry->size > 0))
+               return NULL;  /* internal inconsistency error */
+
        switch (entry->tag) {
        
        /* Nikon */