]> granicus.if.org Git - php/commitdiff
Fixed the bug that temp may depend on a uninitialzed value
authorXinchen Hui <laruence@php.net>
Sun, 7 Aug 2011 05:19:55 +0000 (05:19 +0000)
committerXinchen Hui <laruence@php.net>
Sun, 7 Aug 2011 05:19:55 +0000 (05:19 +0000)
ext/phar/util.c

index c4f1a756cb2cfea055a0f2202bfc1c9d413c06d8..2d9383bc08df9b3f1efa358cef091f4d80af78fc 100644 (file)
@@ -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;