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>
This commit is contained in:
Dandan Bi 2016-12-19 11:18:46 +08:00 committed by Hao Wu
parent 072b2327c1
commit 4d9ea30931
1 changed files with 3 additions and 1 deletions

View File

@ -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);