[haiku-commits] r40077 - haiku/trunk/src/system/boot/platform/bios_ia32

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 3 Jan 2011 00:03:01 +0100 (CET)

Author: bonefish
Date: 2011-01-03 00:03:01 +0100 (Mon, 03 Jan 2011)
New Revision: 40077
Changeset: http://dev.haiku-os.org/changeset/40077

Modified:
   haiku/trunk/src/system/boot/platform/bios_ia32/devices.cpp
Log:
Always initialize fSize in the BIOSDrive constructor -- InitCheck() uses it
(CID 10272).


Modified: haiku/trunk/src/system/boot/platform/bios_ia32/devices.cpp
===================================================================
--- haiku/trunk/src/system/boot/platform/bios_ia32/devices.cpp  2011-01-02 
22:37:31 UTC (rev 40076)
+++ haiku/trunk/src/system/boot/platform/bios_ia32/devices.cpp  2011-01-02 
23:03:01 UTC (rev 40077)
@@ -541,7 +541,8 @@
 
 BIOSDrive::BIOSDrive(uint8 driveID)
        :
-       fDriveID(driveID)
+       fDriveID(driveID),
+       fSize(0)
 {
        TRACE(("drive ID %u\n", driveID));
 


Other related posts:

  • » [haiku-commits] r40077 - haiku/trunk/src/system/boot/platform/bios_ia32 - ingo_weinhold