]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Fix a missed initialization in get_option_value()
[stockfish] / src / ucioption.cpp
index 919271a95e78adf1163b445c2e6bbdbb83813553..79f9886897794b0e211c5cbbf63c3cc4b7dcb2af 100644 (file)
@@ -127,7 +127,7 @@ namespace {
     o.push_back(Option("Futility Margin 2", 300, 0, 1000));
     o.push_back(Option("Maximum Razoring Depth", 3, 0, 4));
     o.push_back(Option("Razoring Margin", 300, 150, 600));
-    o.push_back(Option("LSN filtering", true));
+    o.push_back(Option("LSN filtering", false));
     o.push_back(Option("LSN Time Margin (sec)", 4, 1, 10));
     o.push_back(Option("LSN Value Margin", 200, 100, 600));
     o.push_back(Option("Randomness", 0, 0, 10));
@@ -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())