From 36b54a2e7c6be56b61a7813839d8c125d181de4f Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 25 Sep 2005 17:21:45 +0000 Subject: [PATCH] fixed uninitialized variable warnings svn path=/trunk/; revision=18059 --- reactos/drivers/usb/miniport/common/fdo.c | 2 +- reactos/drivers/usb/usbhub/fdo.c | 2 +- reactos/drivers/usb/usbport/message.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/usb/miniport/common/fdo.c b/reactos/drivers/usb/miniport/common/fdo.c index 936bf385db5..1eb165fabb6 100644 --- a/reactos/drivers/usb/miniport/common/fdo.c +++ b/reactos/drivers/usb/miniport/common/fdo.c @@ -227,7 +227,7 @@ UsbMpPnpFdo( { case BusRelations: { - PDEVICE_RELATIONS DeviceRelations; + PDEVICE_RELATIONS DeviceRelations = NULL; DPRINT("USBMP: IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n"); Status = UsbMpFdoQueryBusRelations(DeviceObject, &DeviceRelations); Information = (ULONG_PTR)DeviceRelations; diff --git a/reactos/drivers/usb/usbhub/fdo.c b/reactos/drivers/usb/usbhub/fdo.c index 0d76fd3dba4..8d29846aade 100644 --- a/reactos/drivers/usb/usbhub/fdo.c +++ b/reactos/drivers/usb/usbhub/fdo.c @@ -252,7 +252,7 @@ UsbhubPnpFdo( { case BusRelations: { - PDEVICE_RELATIONS DeviceRelations; + PDEVICE_RELATIONS DeviceRelations = NULL; DPRINT("Usbhub: IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n"); Status = UsbhubFdoQueryBusRelations(DeviceObject, &DeviceRelations); Information = (ULONG_PTR)DeviceRelations; diff --git a/reactos/drivers/usb/usbport/message.c b/reactos/drivers/usb/usbport/message.c index ecd061d57ce..a7fe455cae9 100644 --- a/reactos/drivers/usb/usbport/message.c +++ b/reactos/drivers/usb/usbport/message.c @@ -569,7 +569,7 @@ void usb_sg_cancel (struct usb_sg_request *io) int usb_get_descriptor(struct usb_device *dev, unsigned char type, unsigned char index, void *buf, int size) { int i = 5; - int result; + int result = 0; memset(buf,0,size); // Make sure we parse really received data