mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Gob - Silence a Valgrind warning by initializing a variable
svn-id: r44467
This commit is contained in:
parent
6f6b699390
commit
f6aaafae7c
@ -361,6 +361,8 @@ uint32 DataIO::getChunkPos(int16 handle) const {
|
||||
}
|
||||
|
||||
int32 DataIO::getChunkSize(const char *chunkName, int32 &packSize) {
|
||||
packSize = -1;
|
||||
|
||||
for (int16 file = 0; file < MAX_DATA_FILES; file++) {
|
||||
if (_dataFiles[file] == 0)
|
||||
return -1;
|
||||
@ -370,10 +372,8 @@ int32 DataIO::getChunkSize(const char *chunkName, int32 &packSize) {
|
||||
if (scumm_stricmp(chunkName, dataDesc->chunkName) != 0)
|
||||
continue;
|
||||
|
||||
if (dataDesc->packed == 0) {
|
||||
packSize = -1;
|
||||
if (dataDesc->packed == 0)
|
||||
return dataDesc->size;
|
||||
}
|
||||
|
||||
for (int16 slot = 0; slot < MAX_SLOT_COUNT; slot++)
|
||||
_isCurrentSlot[slot] = false;
|
||||
|
Loading…
Reference in New Issue
Block a user