Potentially uninitialized local variables 'TableKey' and 'TableHeader'
might be used in functions RamDiskPublishNfit() and RamDiskUnpublishNfit()
in file RamDiskProtocol.c.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
//\r
// Determine whether there is a NFIT already in the ACPI table.\r
//\r
//\r
// Determine whether there is a NFIT already in the ACPI table.\r
//\r
- Status = EFI_SUCCESS;\r
- TableIndex = 0;\r
+ Status = EFI_SUCCESS;\r
+ TableIndex = 0;\r
+ TableKey = 0;\r
+ TableHeader = NULL;\r
\r
while (!EFI_ERROR (Status)) {\r
Status = mAcpiSdtProtocol->GetAcpiTable (\r
\r
while (!EFI_ERROR (Status)) {\r
Status = mAcpiSdtProtocol->GetAcpiTable (\r
//\r
// Find the NFIT in the ACPI table.\r
//\r
//\r
// Find the NFIT in the ACPI table.\r
//\r
- Status = EFI_SUCCESS;\r
- TableIndex = 0;\r
+ Status = EFI_SUCCESS;\r
+ TableIndex = 0;\r
+ TableKey = 0;\r
+ TableHeader = NULL;\r
\r
while (!EFI_ERROR (Status)) {\r
Status = mAcpiSdtProtocol->GetAcpiTable (\r
\r
while (!EFI_ERROR (Status)) {\r
Status = mAcpiSdtProtocol->GetAcpiTable (\r