summaryrefslogtreecommitdiff
path: root/ext/phar/phar.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-08-07 11:13:27 +0000
committerXinchen Hui <laruence@php.net>2011-08-07 11:13:27 +0000
commitcc42ac9d9b64a96f97e462a2a74eda9cf18ac77f (patch)
tree2b2152ba9113fe79b52dc18c36a538f0b373c76a /ext/phar/phar.c
parente03d19a00e2a4addcbc45b98d1bfd9fd8fb05a91 (diff)
downloadphp-git-cc42ac9d9b64a96f97e462a2a74eda9cf18ac77f.tar.gz
Initialize variable with fixed value for avoiding compile warnings
Diffstat (limited to 'ext/phar/phar.c')
-rw-r--r--ext/phar/phar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index 70ca17fb42..866eb41b18 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -667,7 +667,7 @@ static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char
php_uint32 manifest_len, manifest_count, manifest_flags, manifest_index, tmp_len, sig_flags;
php_uint16 manifest_ver;
long offset;
- int register_alias, sig_len, temp_alias = 0;
+ int sig_len, register_alias = 0, temp_alias = 0;
char *signature = NULL;
if (pphar) {
@@ -3391,6 +3391,7 @@ static zend_op_array *phar_compile_file(zend_file_handle *file_handle, int type
res = phar_orig_compile_file(file_handle, type TSRMLS_CC);
} zend_catch {
failed = 1;
+ res = NULL;
} zend_end_try();
if (name) {