set initialized value for PrintNum.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5469 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-07-15 06:52:26 +00:00
parent aaf14379c6
commit 379650305d
1 changed files with 2 additions and 1 deletions

View File

@ -687,6 +687,7 @@ Print (
VerticalResolution = 0; VerticalResolution = 0;
Blt = NULL; Blt = NULL;
FontInfo = NULL; FontInfo = NULL;
PrintNum = 0;
if (GraphicsOutput != NULL) { if (GraphicsOutput != NULL) {
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution; HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
@ -834,7 +835,7 @@ Error:
SafeFreePool (FontInfo); SafeFreePool (FontInfo);
FreePool (Buffer); FreePool (Buffer);
if (EFI_ERROR(Status)) { if (EFI_ERROR (Status)) {
return PrintNum; return PrintNum;
} else { } else {
return 0; return 0;