Fixed uninitialized variable.

This commit is contained in:
Robert Osfield
2004-11-10 22:11:28 +00:00
parent 141c3cadbf
commit 9fcda76143
2 changed files with 5 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ class OSGDB_EXPORT Archive : public ReaderWriter
inline bool spaceAvailable(pos_type, size_type, const std::string& filename) const
{
unsigned requiredSize = sizeof(pos_type)+sizeof(unsigned int)+filename.size();
unsigned requiredSize = sizeof(pos_type)+sizeof(size_type)+sizeof(unsigned int)+filename.size();
return (_offsetOfNextAvailableSpace + requiredSize)<_blockSize;
}