]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/String.c
MdePkg/BaseLib: Base64Decode(): don't declare variables in nested blocks
[mirror_edk2.git] / MdePkg / Library / BaseLib / String.c
index 6198ccbc967213562690fe7878084bc6070e1699..45198373f25c87adc4f0a348fef853da045eb9ab 100644 (file)
@@ -1978,6 +1978,9 @@ Base64Decode (
   UINT32  Accumulator;\r
   UINTN   OriginalDestinationSize;\r
   UINTN   SourceIndex;\r
+  CHAR8   SourceChar;\r
+  UINT32  Base64Value;\r
+  UINT8   DestinationOctet;\r
 \r
   if (DestinationSize == NULL) {\r
     return RETURN_INVALID_PARAMETER;\r
@@ -2054,10 +2057,6 @@ Base64Decode (
   // Decoding loop.\r
   //\r
   for (SourceIndex = 0; SourceIndex < SourceSize; SourceIndex++) {\r
-    CHAR8  SourceChar;\r
-    UINT32 Base64Value;\r
-    UINT8  DestinationOctet;\r
-\r
     SourceChar = Source[SourceIndex];\r
 \r
     //\r