summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l
index 58717ab..546debd 100644
--- a/src/config.l
+++ b/src/config.l
@@ -183,7 +183,10 @@ void ConfigInt::convertStrToVal()
config_warn("Warning: argument `%s' for option %s is not a valid number in the range [%d..%d]!\n"
"Using the default: %d!\n",m_valueString.data(),m_name.data(),m_minVal,m_maxVal,m_value);
}
- m_value=val;
+ else
+ {
+ m_value=val;
+ }
}
}