From c9a59facd85f75bd30a6b9c0cccd789bc34402b1 Mon Sep 17 00:00:00 2001 From: Mike Maslenkin Date: Fri, 9 Aug 2024 02:46:12 +0300 Subject: RedfishPkg: RedfishDiscoverDxe: fix compilation warning /RedfishDiscoverDxe.c:1979:37: error: 'RestExInstance' may be used uninitialized in this function [-Werror=maybe-uninitialized] RestExInstance->Signature = EFI_REDFISH_DISCOVER_DATA_SIGNATURE; cc1: all warnings being treated as errors Signed-off-by: Mike Maslenkin --- RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'RedfishPkg') diff --git a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c index 6870a2c..22fdbb7 100644 --- a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c +++ b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c @@ -1855,6 +1855,7 @@ BuildupNetworkInterface ( ListCount = (sizeof (mRequiredProtocol) / sizeof (REDFISH_DISCOVER_REQUIRED_PROTOCOL)); NewNetworkInterfaceInstalled = FALSE; Index = 0; + RestExInstance = NULL; for (Index = 0; Index < ListCount; Index++) { Status = gBS->OpenProtocol ( -- cgit v1.1