From 27b8f91dbd78b7928ecb57f7d6f3ea2368fece82 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 28 Oct 2014 08:15:49 +0000 Subject: [PATCH] [DRIVERS] don't use uninitialized variables svn path=/trunk/; revision=65066 --- reactos/drivers/bus/acpi/main.c | 2 +- reactos/drivers/bus/pcix/fdo.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.17.1