]> git.proxmox.com Git - mirror_edk2.git/commit - DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/PpttGenerator.c
DynamicTablesPkg: PPTT: Fix uninitialized memory usage
authorSami Mujawar <sami.mujawar@arm.com>
Mon, 5 Aug 2019 15:43:37 +0000 (16:43 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 29 Mar 2020 16:53:35 +0000 (16:53 +0000)
commit4d23a7ec84e37cab2a30aaddb3e689c042776561
treee9c9f07aea56303ff3b9efad29a39be4b7d84dc5
parent4817953949e939687e428249cea1607cd66a134a
DynamicTablesPkg: PPTT: Fix uninitialized memory usage

On enabling the /analyse option the VS2017 compiler
reports: warning C6001: Using uninitialized memory.

This warning is reported as some variables that were
being logged were uninitialised. To fix this, moved
the logging code after the variables being logged are
initialised.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/PpttGenerator.c