summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 55321770b..e0c466097 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1579,6 +1579,8 @@ void ValueItem::Set(int value)
int ValueItem::GetInteger()
{
+ if (v.empty())
+ return 0;
return atoi(v.c_str());
}