From 95ac787f02d5c85d046af5cefa3b49f0f8841733 Mon Sep 17 00:00:00 2001 From: Eugene Cohen Date: Wed, 25 Nov 2015 19:50:05 +0000 Subject: 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 Reviewed-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18952 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ArmPkg') diff --git a/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c b/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c index 1dfc7402fb..f6c692f9a4 100644 --- a/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c +++ b/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c @@ -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); -- cgit v1.2.3