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:
Eugene Cohen 2015-11-25 19:50:05 +00:00 committed by abiesheuvel
parent bfec5efa56
commit 95ac787f02
1 changed files with 1 additions and 0 deletions

View File

@ -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);