summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 17:39:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 17:39:04 +0000
commit9be94a9a9cf3a7946171994c97bcf4041dd8dd48 (patch)
tree1f902973ef85b6fb3f7710baee08f28af6158523 /src/inspircd_io.cpp
parent64f837e0d3fb6f9d495e5a9e2930a9d76dc3748c (diff)
Attempted fixes to make ModuleReader::ReadValue return "" if string does not exist
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@455 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index f1f11d265..18bee1f18 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -292,6 +292,7 @@ int ReadConf(std::stringstream *config, const char* tag, const char* var, int in
if (!key)
{
/* value not found in tag */
+ strcpy(result,"");
return 0;
}
else
@@ -302,6 +303,7 @@ int ReadConf(std::stringstream *config, const char* tag, const char* var, int in
if (!strlen(key))
{
/* missing quote */
+ strcpy(result,"");
return 0;
}
key++;
@@ -339,6 +341,7 @@ int ReadConf(std::stringstream *config, const char* tag, const char* var, int in
}
}
}
+ strcpy(result,""); // value or its tag not found at all
return 0;
}