summaryrefslogtreecommitdiff
path: root/RedfishPkg
diff options
context:
space:
mode:
authorMike Maslenkin <mike.maslenkin@gmail.com>2024-08-09 02:46:12 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-05 03:40:45 +0000
commitc9a59facd85f75bd30a6b9c0cccd789bc34402b1 (patch)
tree6d2584fa75a65482f4b8bc3c77e4d1089e2b2f4d /RedfishPkg
parent2ddce71142a6243aa4dc64242553d6591eb58def (diff)
downloadedk2-c9a59facd85f75bd30a6b9c0cccd789bc34402b1.zip
edk2-c9a59facd85f75bd30a6b9c0cccd789bc34402b1.tar.gz
edk2-c9a59facd85f75bd30a6b9c0cccd789bc34402b1.tar.bz2
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 <mike.maslenkin@gmail.com>
Diffstat (limited to 'RedfishPkg')
-rw-r--r--RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c1
1 files changed, 1 insertions, 0 deletions
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 (