From e895332dff10f1bc4420fb60023834a049a5a08f Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 20 Jan 2007 15:57:11 +0000 Subject: 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 --- src/configreader.cpp | 3 +++ 1 file changed, 3 insertions(+) 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]; -- cgit v1.2.3