diff --git a/examples_linux/ncurses/scanner_curses.cpp b/examples_linux/ncurses/scanner_curses.cpp index 89c538a7a..772cd836c 100644 --- a/examples_linux/ncurses/scanner_curses.cpp +++ b/examples_linux/ncurses/scanner_curses.cpp @@ -111,7 +111,8 @@ int main(int argc, char** argv) getline(cin, input); if (input.length()) { duration = stoi(input); - if (!duration) input.clear(); + if (!duration) + input.clear(); } }