mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
* Some more static analysis issues fixed.
This commit is contained in:
@@ -498,9 +498,10 @@ namespace VMAP
|
||||
}
|
||||
|
||||
char ident[8];
|
||||
ident[7] = 0;
|
||||
int readOperation = 0;
|
||||
|
||||
READ_OR_RETURN(&ident, 8);
|
||||
|
||||
READ_OR_RETURN(&ident, 7);
|
||||
CMP_OR_RETURN(ident, RAW_VMAP_MAGIC);
|
||||
|
||||
// we have to read one int. This is needed during the export and we have to skip it here
|
||||
@@ -516,7 +517,8 @@ namespace VMAP
|
||||
for (uint32 g = 0; g < groups && succeed; ++g)
|
||||
succeed = groupsArray[g].Read(rf);
|
||||
|
||||
fclose(rf);
|
||||
if (!succeed) /// rf will be freed inside Read if the function had any errors.
|
||||
fclose(rf);
|
||||
return succeed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user