repo: ngircd action: commit revision: path_from: revision_from: a085444035016061ca71d43f077d715138708f4e: path_to: revision_to:
commit a085444035016061ca71d43f077d715138708f4e Author: Alexander BartonDate: Sun Jun 26 00:07:47 2011 +0200 CheckFileReadable(): only check when a filename is given ... diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -121,6 +121,9 @@ CheckFileReadable(const char *Var, const char *Filename)
{
FILE *fp;
+ if (!Filename)
+ return;
+
fp = fopen(Filename, "r");
if (fp)
fclose(fp);
-----END OF PAGE-----