diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-20 15:57:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-20 15:57:11 +0000 |
commit | e895332dff10f1bc4420fb60023834a049a5a08f (patch) | |
tree | 6f0a58ab18fcde9d962f3d8e827d1bf40aa6125c | |
parent | a7741ecae95241863c5fe74c5b19bbe1fb17d1f5 (diff) |
Now wont even try to read an empty file
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6400 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 106a6526a..f767eae72 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1438,6 +1438,9 @@ int ServerConfig::ConfVarEnum(ConfigDataHash &target, const std::string &tag, in */ bool ServerConfig::ReadFile(file_cache &F, const char* fname) { + if (!fname || !*fname) + return false; + FILE* file = NULL; char linebuf[MAXBUF]; |