From 4c2e6c1cf6492ea2dfa1f6a0cb1b29d8d9a363c9 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 7 Aug 2011 11:13:27 +0000 Subject: Initialize variable with fixed value for avoiding compile warnings --- ext/phar/phar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/phar/phar.c') diff --git a/ext/phar/phar.c b/ext/phar/phar.c index a5cbab73e3..70035c7a45 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) { @@ -3393,6 +3393,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) { -- cgit v1.2.1