mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 16:45:31 +01:00
Ensure we initialise the position variable. See #5599 props codestyling.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c678502b3d
commit
14adf33381
@ -159,7 +159,8 @@ class CachedFileReader extends StringReader {
|
||||
return false;
|
||||
}
|
||||
$this->_str = fread($fd, $length);
|
||||
fclose($fd);
|
||||
$this->_pos = 0;
|
||||
fclose($fd);
|
||||
|
||||
} else {
|
||||
$this->error = 2; // File doesn't exist
|
||||
@ -169,4 +170,4 @@ class CachedFileReader extends StringReader {
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user