squash gcc debugger warnings

remove nsections>UINT16_MAX check
This commit is contained in:
olszomal
2023-08-29 08:14:11 +02:00
committed by Michał Trojnara
parent 5d2bf2c80f
commit 2d21a2121c
2 changed files with 2 additions and 2 deletions

2
msi.c
View File

@ -1952,7 +1952,7 @@ static void dirtree_save(MSI_DIRENT *dirent, BIO *outdata, MSI_OUT *out)
static int fat_save(BIO *outdata, MSI_OUT *out)
{
char buf[MAX_SECTOR_SIZE];
uint32_t i, j, remain, difatSectors, difatEntriesPerSector, fatSectorIndex, lastFatSectorIndex;
uint32_t i, j, remain, difatSectors, difatEntriesPerSector = 0, fatSectorIndex, lastFatSectorIndex;
remain = (out->fatLen + out->sectorSize - 1) / out->sectorSize;
out->fatSectorsCount = (out->fatLen + remain * 4 + out->sectorSize - 1) / out->sectorSize;