Module: ngircd.git Branch: master Commit: a085444035016061ca71d43f077d715138708f4e URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=a0854...
Author: Alexander Barton alex@barton.de Date: Sun Jun 26 00:07:47 2011 +0200
CheckFileReadable(): only check when a filename is given ...
---
src/ngircd/conf.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index f5ddec8..0a814a7 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);