diff options
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r-- | src/modules/database/database.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 9ede9ce6e9..aa0c86045c 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -33,14 +33,14 @@ void EnsureCheckerLoaded(bool); void LoadDatabaseServices();
-bool fileExist(TCHAR* fname)
+bool fileExist(const TCHAR *fname)
{
if (*fname == 0)
return false;
- FILE* fp = _tfopen(fname, _T("r+"));
+ FILE *fp = _tfopen(fname, _T("r+"));
bool res = fp != NULL;
- if (res) fclose(fp);
+ if (fp) fclose(fp);
return res;
}
|