From: Xinchen Hui Date: Sun, 7 Aug 2011 05:19:55 +0000 (+0000) Subject: Fixed the bug that temp may depend on a uninitialzed value X-Git-Tag: php-5.5.0alpha1~1624 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66527e38ccbb7d532505279e9812a733b2353d5d;p=php Fixed the bug that temp may depend on a uninitialzed value --- diff --git a/ext/phar/util.c b/ext/phar/util.c index c4f1a756cb..2d9383bc08 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -124,7 +124,7 @@ php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC) /* int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC) /* {{{ */ { php_stream *fp = phar_get_efp(entry, follow_links TSRMLS_CC); - off_t temp, eoffset; + off_t temp = 0, eoffset = 0; if (!fp) { return -1;