From: Marco Costalba Date: Sun, 28 Dec 2008 11:37:13 +0000 (+0100) Subject: Don't silently accept an option name mismatch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=aedc6c6f1fd1978b880447fb737e75b8170f2073;hp=dae4e7df07061c01c60bee182cf7e54f4743beb8 Don't silently accept an option name mismatch With this we could have found earlier the futility name option bug! Signed-off-by: Marco Costalba --- diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 6788a996..e3ebaf1f 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -183,7 +183,9 @@ namespace { { std::istringstream ss(it->currentValue); ss >> ret; - } + } else + assert(false); + return ret; }