diff options
-rw-r--r-- | engines/gob/dataio.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/gob/dataio.cpp b/engines/gob/dataio.cpp index 675046ff64..7a7fdba5a2 100644 --- a/engines/gob/dataio.cpp +++ b/engines/gob/dataio.cpp @@ -460,7 +460,8 @@ void DataIO::closeDataFile(bool itk) { } byte *DataIO::getUnpackedData(const char *name) { - int32 realSize, packSize; + int32 realSize; + int32 packSize = -1; realSize = getChunkSize(name, packSize); @@ -552,11 +553,11 @@ int32 DataIO::readData(int16 handle, byte *buf, uint16 size) { int32 DataIO::getDataSize(const char *name) { char buf[128]; + int32 chunkSize; + int32 packSize = -1; strncpy0(buf, name, 127); - int32 chunkSize, packSize; - chunkSize = getChunkSize(buf, packSize); if (chunkSize >= 0) return chunkSize; |