summaryrefslogtreecommitdiff
path: root/RedfishPkg/Library
diff options
context:
space:
mode:
authorMike Maslenkin <mike.maslenkin@gmail.com>2024-08-09 02:48:34 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-05 03:40:45 +0000
commit7acd8c9bd25de8e6af84d1696a8f963eac582089 (patch)
tree85e8879f4614321a538c0229013011bbb713bee6 /RedfishPkg/Library
parentc9a59facd85f75bd30a6b9c0cccd789bc34402b1 (diff)
downloadedk2-7acd8c9bd25de8e6af84d1696a8f963eac582089.zip
edk2-7acd8c9bd25de8e6af84d1696a8f963eac582089.tar.gz
edk2-7acd8c9bd25de8e6af84d1696a8f963eac582089.tar.bz2
RedfishPkg: PlatformHostInterfaceBmcUsbNicLib: fix compilation warning
PlatformHostInterfaceBmcUsbNicLib.c: In function 'CheckBmcUsbNic': PlatformHostInterfaceBmcUsbNicLib.c:1253:14: error: error: 'HandleBuffer' may be used uninitialized in this function [-Werror=maybe-uninitialized] Status = CheckBmcUsbNicOnHandles (BufferSize/sizeof (EFI_HANDLE), HandleBuffer); cc1: all warnings being treated as errors Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Diffstat (limited to 'RedfishPkg/Library')
-rw-r--r--RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c
index c73e76d..6cb5a4b 100644
--- a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c
+++ b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c
@@ -1202,6 +1202,7 @@ CheckBmcUsbNic (
DEBUG ((DEBUG_MANAGEABILITY, "%a: Entry, the registration key - 0x%08x.\n", __func__, Registration));
Handle = NULL;
+ HandleBuffer = NULL;
Status = EFI_SUCCESS;
do {