]> granicus.if.org Git - php/commitdiff
Initialize temp with 0, avoiding compile warning
authorXinchen Hui <laruence@php.net>
Sun, 7 Aug 2011 05:24:11 +0000 (05:24 +0000)
committerXinchen Hui <laruence@php.net>
Sun, 7 Aug 2011 05:24:11 +0000 (05:24 +0000)
ext/phar/stream.c

index f9bf3f3e01e79583a8cc56abb64c73fc4c58997c..2addae4db5b50ffab20789528d9418299e14414e 100644 (file)
@@ -403,7 +403,7 @@ static int phar_stream_seek(php_stream *stream, off_t offset, int whence, off_t
        phar_entry_data *data = (phar_entry_data *)stream->abstract;
        phar_entry_info *entry;
        int res;
-       off_t temp;
+       off_t temp = 0;
 
        if (data->internal_file->link) {
                entry = phar_get_link_source(data->internal_file TSRMLS_CC);