Don't silently accept an option name mismatch
authorMarco Costalba <mcostalba@gmail.com>
Sun, 28 Dec 2008 11:37:13 +0000 (12:37 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 28 Dec 2008 11:37:13 +0000 (12:37 +0100)
With this we could have found earlier the futility
name option bug!

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

index 6788a996dd3393b80480449522c4932c294f08ac..e3ebaf1f88830dc9acb90e137600e2533906702d 100644 (file)
@@ -183,7 +183,9 @@ namespace {
       {
           std::istringstream ss(it->currentValue);
           ss >> ret;
-      }
+      } else
+          assert(false);
+
       return ret;
   }