]> git.sesse.net Git - stockfish/commit - src/uci.cpp
Clear token before reading from input
authorRodrigo Exterckötter Tjäder <rodrigo@tjader.com.br>
Sun, 16 Nov 2014 23:48:30 +0000 (07:48 +0800)
committerGary Linscott <glinscott@gmail.com>
Sun, 16 Nov 2014 23:48:30 +0000 (07:48 +0800)
commit99f2c1a2a64cac94ee56324fa25f8fba04cd1347
tree67ce27dcae2823e9c42880319a69f188b8c7e027
parent3b1f552b08b254a5b2d8234ba35d52d3ee86a7cb
Clear token before reading from input

Previously token would keep its value from the previous line when an empty
line was input, leading to unexpected behaviour.

No functional change

Resolves #119
src/uci.cpp