CheckFileReadable(): only check when a filename is given ...

This commit is contained in:
Alexander Barton 2011-06-26 00:07:47 +02:00
parent 449ad1eeea
commit a085444035
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ CheckFileReadable(const char *Var, const char *Filename)
{
FILE *fp;
if (!Filename)
return;
fp = fopen(Filename, "r");
if (fp)
fclose(fp);