summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-08-04 18:08:13 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-08-04 18:08:13 +0000
commitcc40cdc7d760cedc6ed4bafa60a03b67c8b9e437 (patch)
treedc9751e7e026f077bddd11649ef6abac585cc3a9
parent58ee4e47a4e412855e9fab8d08717f09a6a143c9 (diff)
downloadphp-git-cc40cdc7d760cedc6ed4bafa60a03b67c8b9e437.tar.gz
Fix newly introduced crash on a file-not-found
-rw-r--r--ext/exif/exif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 7abb061cf6..d7a4e009b1 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -1137,7 +1137,7 @@ PHP_FUNCTION(read_exif_data)
ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name), readall);
- if (array_init(return_value) == FAILURE) {
+ if (ret==FALSE || array_init(return_value) == FAILURE) {
RETURN_FALSE;
}
add_assoc_string(return_value,"FileName",ImageInfo.FileName,1);