Fix a missed initialization in get_option_value()
authorMarco Costalba <mcostalba@gmail.com>
Tue, 4 Nov 2008 19:59:11 +0000 (20:59 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 4 Nov 2008 19:59:11 +0000 (20:59 +0100)
Spotted and reported by Dann Corbit.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/ucioption.cpp

index e34c0e775b4d3fdc21ee4f258c5e4de7e6416a5d..79f9886897794b0e211c5cbbf63c3cc4b7dcb2af 100644 (file)
@@ -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())