From a085444035016061ca71d43f077d715138708f4e Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 26 Jun 2011 00:07:47 +0200 Subject: [PATCH] CheckFileReadable(): only check when a filename is given ... --- src/ngircd/conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index f5ddec8e..0a814a76 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);