repo: ngircd
action: commit
revision: 
path_from: 
revision_from: a085444035016061ca71d43f077d715138708f4e:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit a085444035016061ca71d43f077d715138708f4e
Author: Alexander Barton 
Date:   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
index f5ddec8e1e0232e0b4447f07f185b21fab5f70c3..
index ..0a814a76269a5ce323ec7a85ba5a85c7125ea360 100644
--- 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-----