mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Fix a missed initialization in get_option_value()
Spotted and reported by Dann Corbit. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -176,7 +176,7 @@ namespace {
|
||||
template<typename T>
|
||||
T get_option_value(const std::string& optionName) {
|
||||
|
||||
T ret;
|
||||
T ret = T();
|
||||
Options::iterator it = option_with_name(optionName);
|
||||
|
||||
if (it != options.end())
|
||||
|
||||
Reference in New Issue
Block a user