From 66527e38ccbb7d532505279e9812a733b2353d5d Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 7 Aug 2011 05:19:55 +0000 Subject: [PATCH] Fixed the bug that temp may depend on a uninitialzed value --- ext/phar/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1