mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
072b2327c1
commit
4d9ea30931
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user