mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Remove unnecessary memset for sector data in aaruf_read_sector() when sector status is not dumped
This commit is contained in:
@@ -136,7 +136,6 @@ int32_t aaruf_read_sector(void *context, uint64_t sectorAddress, uint8_t *data,
|
|||||||
// Partially written image... as we can't know the real sector size just assume it's common :/
|
// Partially written image... as we can't know the real sector size just assume it's common :/
|
||||||
if(sectorStatus == SectorStatusNotDumped)
|
if(sectorStatus == SectorStatusNotDumped)
|
||||||
{
|
{
|
||||||
memset(data, 0, ctx->imageInfo.SectorSize);
|
|
||||||
*length = ctx->imageInfo.SectorSize;
|
*length = ctx->imageInfo.SectorSize;
|
||||||
|
|
||||||
TRACE("Exiting aaruf_read_sector() = AARUF_STATUS_SECTOR_NOT_DUMPED");
|
TRACE("Exiting aaruf_read_sector() = AARUF_STATUS_SECTOR_NOT_DUMPED");
|
||||||
|
|||||||
Reference in New Issue
Block a user