summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 +0000
commit1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90 (patch)
treea88868e69d5ac42e21eaf918d6ba059220014f43 /ext/exif
parentb2bc40f70c2e02c7fe81207e48f73b401946e8ae (diff)
downloadphp-git-1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90.tar.gz
MFH: initialize optional vars
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/exif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index a75e223011..f9da6e2e1c 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -3908,8 +3908,8 @@ static int exif_read_file(image_info_type *ImageInfo, char *FileName, int read_t
Reads header data from the JPEG/TIFF image filename and optionally reads the internal thumbnails */
PHP_FUNCTION(exif_read_data)
{
- char *p_name, *p_sections_needed;
- int p_name_len, p_sections_needed_len;
+ char *p_name, *p_sections_needed = NULL;
+ int p_name_len, p_sections_needed_len = 0;
zend_bool sub_arrays=0, read_thumbnail=0, read_all=0;
int i, ac = ZEND_NUM_ARGS(), ret, sections_needed=0;