]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/GraphicsLib/Graphics.c
set initialized value for PrintNum.
[mirror_edk2.git] / MdeModulePkg / Library / GraphicsLib / Graphics.c
index 56204aaecad9c38dce13c152e8f6d97a36fa8aba..851f40e75ec29810bd5b55ec55ea76f1be0f2512 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