mirror of https://github.com/acidanthera/audk.git
ArmPkg/UncachedMemoryAllocationLib: fix warning about uninitialized local var
RVCT (the proprietary 32-bit ARM compiler) warns about Node potentially being used uninitialized, so initialize it to NULL explicitly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen <eugene@hp.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18952 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bfec5efa56
commit
95ac787f02
|
@ -97,6 +97,7 @@ AllocatePagesFromList (
|
|||
//
|
||||
// Look in our list for the smallest page that could satisfy the new allocation
|
||||
//
|
||||
Node = NULL;
|
||||
NewNode = NULL;
|
||||
for (Link = mPageList.ForwardLink; Link != &mPageList; Link = Link->ForwardLink) {
|
||||
Node = BASE_CR (Link, FREE_PAGE_NODE, Link);
|
||||
|
|
Loading…
Reference in New Issue