projects
/
platform
/
upstream
/
libexif.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a few more NULL pointer checks.
[platform/upstream/libexif.git]
/
libexif
/
exif-entry.c
diff --git
a/libexif/exif-entry.c
b/libexif/exif-entry.c
index
34159c1
..
feac889
100644
(file)
--- a/
libexif/exif-entry.c
+++ b/
libexif/exif-entry.c
@@
-859,7
+859,7
@@
exif_entry_get_value (ExifEntry *e, char *val, unsigned int maxlen)
(void) bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
- if (!e || !e->parent || !e->parent->parent || !maxlen)
+ if (!e || !e->parent || !e->parent->parent || !maxlen
|| !val
)
return val;
/* make sure the returned string is zero terminated */