summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index 817c1b4..156e4bc 100644
--- a/common/main.c
+++ b/common/main.c
@@ -574,6 +574,9 @@ int readline (const char *const prompt)
puts ("\r\n");
return (p - console_buffer);
+ case '\0': /* nul */
+ continue;
+
case 0x03: /* ^C - break */
console_buffer[0] = '\0'; /* discard input */
return (-1);