X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=0f67c4401fd6a0b53fef53a27118e63dc0ff626e;hp=ee1b07023a5fe97b17a8c28cb8911fd9caaefc73;hb=79232be02a03a5e2225b30f843e9597fd85951dc;hpb=79fa72f392343fb93c16c133dedc3dbdf795e746 diff --git a/src/uci.cpp b/src/uci.cpp index ee1b0702..0f67c440 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -157,6 +157,7 @@ void UCI::loop(int argc, char* argv[]) { istringstream is(cmd); + token.clear(); // getline() could return empty or blank line is >> skipws >> token; if (token == "quit" || token == "stop" || token == "ponderhit")