Skip to content
Snippets Groups Projects
Commit f204a145 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

POSIX: Improve console management

parent a40e1ea2
No related branches found
No related tags found
No related merge requests found
......@@ -329,13 +329,13 @@ int main(int argc, char **argv)
}
if (buf_ptr_write > 0) {
if (mystr != string_buffer[buf_ptr_write - 1]) {
if (!mystr.empty() && mystr != string_buffer[buf_ptr_write - 1]) {
string_buffer[buf_ptr_write] = mystr;
buf_ptr_write++;
}
} else {
if (mystr != string_buffer[CMD_BUFF_SIZE - 1]) {
if (!mystr.empty() && mystr != string_buffer[CMD_BUFF_SIZE - 1]) {
string_buffer[buf_ptr_write] = mystr;
buf_ptr_write++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment