set initialized value for PrintNum.
authorvanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 15 Jul 2008 06:52:26 +0000 (06:52 +0000)
committervanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 15 Jul 2008 06:52:26 +0000 (06:52 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5469 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Library/GraphicsLib/Graphics.c

index 56204aa..851f40e 100644 (file)
@@ -687,6 +687,7 @@ Print (
   VerticalResolution    = 0;\r
   Blt                   = NULL;\r
   FontInfo              = NULL;\r
+  PrintNum              = 0;\r
 \r
   if (GraphicsOutput != NULL) {\r
     HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;\r
@@ -834,7 +835,7 @@ Error:
   SafeFreePool (FontInfo);\r
   FreePool (Buffer);\r
 \r
-  if (EFI_ERROR(Status)) {\r
+  if (EFI_ERROR (Status)) {\r
     return PrintNum;\r
   } else {\r
     return 0;\r