From: Christoph von Wittich Date: Tue, 28 Oct 2014 08:15:49 +0000 (+0000) Subject: [DRIVERS] X-Git-Tag: backups/tcpip_revolution@71025~202 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=27b8f91dbd78b7928ecb57f7d6f3ea2368fece82 [DRIVERS] don't use uninitialized variables svn path=/trunk/; revision=65066 --- diff --git a/reactos/drivers/bus/acpi/main.c b/reactos/drivers/bus/acpi/main.c index afc9a1f2e4f..32b74c5d496 100644 --- a/reactos/drivers/bus/acpi/main.c +++ b/reactos/drivers/bus/acpi/main.c @@ -450,7 +450,7 @@ GetProcessorInformation(VOID) LPWSTR ProcessorVendorIdentifier = NULL; LPWSTR HardwareIdsBuffer = NULL; HANDLE ProcessorHandle = NULL; - ULONG Length, Level1Length = 0, Level2Length = 0, Level3Length = 0; + ULONG Length = 0, Level1Length = 0, Level2Length = 0, Level3Length = 0; SIZE_T HardwareIdsLength = 0; SIZE_T VendorIdentifierLength; ULONG i; diff --git a/reactos/drivers/bus/pcix/fdo.c b/reactos/drivers/bus/pcix/fdo.c index 77698b288ea..6d6e84e26fd 100644 --- a/reactos/drivers/bus/pcix/fdo.c +++ b/reactos/drivers/bus/pcix/fdo.c @@ -478,6 +478,8 @@ PciAddDevice(IN PDRIVER_OBJECT DriverObject, AttachedTo = NULL; FdoExtension = NULL; PdoExtension = NULL; + DeviceObject = NULL; + do { /* Check if there's already a device extension for this bus */