From 379650305ddfdc540b32dfc2c8cc6cf782e8eb04 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Tue, 15 Jul 2008 06:52:26 +0000 Subject: [PATCH] set initialized value for PrintNum. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5469 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/GraphicsLib/Graphics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/GraphicsLib/Graphics.c b/MdeModulePkg/Library/GraphicsLib/Graphics.c index 56204aaeca..851f40e75e 100644 --- a/MdeModulePkg/Library/GraphicsLib/Graphics.c +++ b/MdeModulePkg/Library/GraphicsLib/Graphics.c @@ -687,6 +687,7 @@ Print ( VerticalResolution = 0; Blt = NULL; FontInfo = NULL; + PrintNum = 0; if (GraphicsOutput != NULL) { HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution; @@ -834,7 +835,7 @@ Error: SafeFreePool (FontInfo); FreePool (Buffer); - if (EFI_ERROR(Status)) { + if (EFI_ERROR (Status)) { return PrintNum; } else { return 0;