From f3625a080f084dfef7d3bc0fb495c5d7614d9341 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 14 Jul 2014 17:02:16 +0200 Subject: Static Code Analysis: Correctly initialize variables to avoid false-positive detection in the boot code. --- src/Boot/Windows/BootEncryptedIo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Boot/Windows/BootEncryptedIo.cpp') diff --git a/src/Boot/Windows/BootEncryptedIo.cpp b/src/Boot/Windows/BootEncryptedIo.cpp index ff048991..2e6d06d7 100644 --- a/src/Boot/Windows/BootEncryptedIo.cpp +++ b/src/Boot/Windows/BootEncryptedIo.cpp @@ -74,7 +74,7 @@ BiosResult ReadEncryptedSectors (uint16 destSegment, uint16 destOffset, byte dri BiosResult WriteEncryptedSectors (uint16 sourceSegment, uint16 sourceOffset, byte drive, uint64 sector, uint16 sectorCount) { - BiosResult result; + BiosResult result = BiosResultSuccess; AcquireSectorBuffer(); uint64 dataUnitNo; uint64 writeOffset; -- cgit v1.2.3