Fixed compiler warning.

This commit is contained in:
imi415 2022-05-16 14:19:27 +08:00
parent f7fb633e2b
commit 662c2253bd
Signed by: imi415
GPG Key ID: 885EC2B5A8A6F8A7
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ int DbgConsole_Scanf(char *fmt_ptr, ...)
/* See fsl_debug_console.h for documentation of this function. */
int DbgConsole_Getchar(void)
{
char ch;
char ch = '\0';
/* Do nothing if the debug UART is not initialized. */
if (s_debugConsole.type == DEBUG_CONSOLE_DEVICE_TYPE_NONE)
{