From aedc6c6f1fd1978b880447fb737e75b8170f2073 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 28 Dec 2008 12:37:13 +0100 Subject: [PATCH 1/1] 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 --- src/ucioption.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2