Serial I/O Port library functions with no library constructor/destructor\r
\r
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+ Copyright (c) 2021, Arm Limited. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
)\r
{\r
UINT8 PrintBuffer[PRINT_BUFFER_SIZE];\r
- UINTN SourceIndex = 0;\r
- UINTN DestinationIndex = 0;\r
+ UINTN SourceIndex;\r
+ UINTN DestinationIndex;\r
UINT8 CurrentCharacter;\r
\r
+ SourceIndex = 0;\r
+ DestinationIndex = 0;\r
+\r
while (SourceIndex < NumberOfBytes)\r
{\r
CurrentCharacter = Buffer[SourceIndex++];\r