[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XENCONS PATCH 07/11] Suppress uninitialized *Interface warning in FdoQueryInterface
Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx> --- src/xencons/fdo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xencons/fdo.c b/src/xencons/fdo.c index 102e159..c2a0bcb 100644 --- a/src/xencons/fdo.c +++ b/src/xencons/fdo.c @@ -2877,6 +2877,9 @@ FdoQueryInterface( if (Irp == NULL) goto fail1; + // suppress "uninitialized *Interface" warning when IoCallDriver succeeds + RtlZeroMemory(Interface, sizeof (*Interface)); + StackLocation = IoGetNextIrpStackLocation(Irp); StackLocation->MinorFunction = IRP_MN_QUERY_INTERFACE; -- 2.51.0.windows.1 -- Ngoc Tu Dinh | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |