Commit 2852e2fd authored by Joseph Pallamidessi's avatar Joseph Pallamidessi

Fix a serious warning/bug involving a dangling else and a messy conditional imbrication

parent 2757bc51
......@@ -71,11 +71,13 @@ namespace boost { namespace program_options {
if (approx)
{
if (m_long_name.find(option) == 0)
if (m_long_name.find(option) == 0){
if (m_long_name == option)
result = full_match;
else
else{
result = approximate_match;
}
}
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment