]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: IORT: Fix uninitialized memory usage
authorSami Mujawar <sami.mujawar@arm.com>
Mon, 5 Aug 2019 15:30:38 +0000 (16:30 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 29 Mar 2020 16:53:35 +0000 (16:53 +0000)
commit4817953949e939687e428249cea1607cd66a134a
tree7d304b1739ab732e825d0dc8c08df3b8ef0f36d5
parent8b2ac43bd8398c3e9559696de3f44ffaf455006e
DynamicTablesPkg: IORT: 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/AcpiIortLibArm/IortGenerator.c