Do not display eror message when simply pressing return in CLI version
[emu8051.git] / src / cli / emuconsole.c
index 5dd93df..8cfbcae 100644 (file)
@@ -323,6 +323,11 @@ console_main(void)
                                break;
                }
 
+               if (strlen(line) == 0) {
+                       /* Empty line, this is not an error. */
+                       continue;
+               }
+
                /* Keep only the Command part from the input line */
                memcpy(Command, &line[0], Index);
                Command[Index] = '\0';