summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-22 20:32:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-22 20:32:59 +0000
commitb3a11cb400fd02383c4b3eac67eeb54604d6ad77 (patch)
tree67a209bda70b8836a47f9788b7e72f0bca20794b
parent56481aed7e1dbfde05d39a9790d7e3fb2276a0e9 (diff)
Line 1582 configreader.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6063 e03df62e-2008-0410-955e-edbf42e46eb7
-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());
}