diff options
author | Mike Maslenkin <mike.maslenkin@gmail.com> | 2024-08-09 02:46:12 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-05 03:40:45 +0000 |
commit | c9a59facd85f75bd30a6b9c0cccd789bc34402b1 (patch) | |
tree | 6d2584fa75a65482f4b8bc3c77e4d1089e2b2f4d /RedfishPkg | |
parent | 2ddce71142a6243aa4dc64242553d6591eb58def (diff) | |
download | edk2-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.c | 1 |
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 (
|