mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-04 11:29:10 +00:00
CheckFileReadable(): only check when a filename is given ...
This commit is contained in:
parent
449ad1eeea
commit
a085444035
@ -121,6 +121,9 @@ CheckFileReadable(const char *Var, const char *Filename)
|
|||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
|
if (!Filename)
|
||||||
|
return;
|
||||||
|
|
||||||
fp = fopen(Filename, "r");
|
fp = fopen(Filename, "r");
|
||||||
if (fp)
|
if (fp)
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user