summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/GraphicsLib/Graphics.c
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-15 06:52:26 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-15 06:52:26 +0000
commit379650305ddfdc540b32dfc2c8cc6cf782e8eb04 (patch)
tree21da9f9ff5da86673ccc25ea11fd89fae48c9597 /MdeModulePkg/Library/GraphicsLib/Graphics.c
parentaaf14379c61774ff53e4aa53e560388e64fe104d (diff)
downloadedk2-platforms-379650305ddfdc540b32dfc2c8cc6cf782e8eb04.tar.xz
set initialized value for PrintNum.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5469 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/GraphicsLib/Graphics.c')
-rw-r--r--MdeModulePkg/Library/GraphicsLib/Graphics.c3
1 files changed, 2 insertions, 1 deletions
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;