diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-12-19 11:18:46 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-12-20 10:51:22 +0800 |
commit | 4d9ea30931cd0a6a872a97010e3218f6bf841702 (patch) | |
tree | 1179d4b8dcdd0bb2117907ed3308e94f23165eb8 /MdeModulePkg/Universal/Console/TerminalDxe | |
parent | 072b2327c137482a89bca1c7805f739af571d304 (diff) | |
download | edk2-platforms-4d9ea30931cd0a6a872a97010e3218f6bf841702.tar.xz |
MdeModulePkg/TerminalDxe: Initialize variable after declaration
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/Console/TerminalDxe')
-rw-r--r-- | MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c index 9625f4d518..c9b4ffc59f 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c @@ -188,6 +188,7 @@ TerminalConOutOutputString ( CHAR8 AsciiChar;
EFI_STATUS Status;
UINT8 ValidBytes;
+ CHAR8 CrLfStr[2];
//
// flag used to indicate whether condition happens which will cause
// return EFI_WARN_UNKNOWN_GLYPH
@@ -326,7 +327,8 @@ TerminalConOutOutputString ( // the driver, but only if we're not in the middle of
// printing an escape sequence.
//
- CHAR8 CrLfStr[] = {'\r', '\n'};
+ CrLfStr[0] = '\r';
+ CrLfStr[1] = '\n';
Length = sizeof(CrLfStr);
|