From b8442ebcdd0d41b40bb48d64e0c3d19429f0199d Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Wed, 6 Apr 2005 12:32:14 +0000 Subject: [PATCH] fix uninitialized variable warnings svn path=/trunk/; revision=14526 --- reactos/drivers/bus/serenum/detect.c | 2 +- reactos/drivers/bus/serenum/fdo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/bus/serenum/detect.c b/reactos/drivers/bus/serenum/detect.c index 8ca0f2619d4..4a7ca07755a 100644 --- a/reactos/drivers/bus/serenum/detect.c +++ b/reactos/drivers/bus/serenum/detect.c @@ -105,7 +105,7 @@ ReportDetectedDevice( IN PUNICODE_STRING CompatibleIds) { PDEVICE_OBJECT Pdo = NULL; - PPDO_DEVICE_EXTENSION PdoDeviceExtension; + PPDO_DEVICE_EXTENSION PdoDeviceExtension = NULL; PFDO_DEVICE_EXTENSION FdoDeviceExtension; NTSTATUS Status; diff --git a/reactos/drivers/bus/serenum/fdo.c b/reactos/drivers/bus/serenum/fdo.c index 8084cd1a6e0..fbad3937c21 100644 --- a/reactos/drivers/bus/serenum/fdo.c +++ b/reactos/drivers/bus/serenum/fdo.c @@ -100,7 +100,7 @@ SerenumFdoQueryBusRelations( PDEVICE_RELATIONS DeviceRelations; ULONG NumPDO; ULONG i; - NTSTATUS Status; + NTSTATUS Status = STATUS_SUCCESS; DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension; ASSERT(DeviceExtension->Common.IsFDO);