projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
efi_loader: SignalEvent for event in signaled state
[platform/kernel/u-boot.git]
/
common
/
cli_readline.c
diff --git
a/common/cli_readline.c
b/common/cli_readline.c
index
60a232b
..
99b6317
100644
(file)
--- a/
common/cli_readline.c
+++ b/
common/cli_readline.c
@@
-273,6
+273,10
@@
static int cread_line(const char *const prompt, char *buf, unsigned int *len,
ichar = getcmd_getch();
+ /* ichar=0x0 when error occurs in U-Boot getc */
+ if (!ichar)
+ continue;
+
if ((ichar == '\n') || (ichar == '\r')) {
putc('\n');
break;