diff options
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 3 |
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; } |