Fixed uninitialized variable.

This commit is contained in:
leo 2013-01-08 01:40:40 +00:00
parent e2df8f45b5
commit ed05c622db

View file

@ -19,6 +19,7 @@ lcPiecesLibrary::lcPiecesLibrary()
mNumOfficialPieces = 0; mNumOfficialPieces = 0;
mZipFile = NULL; mZipFile = NULL;
mCacheFile = NULL; mCacheFile = NULL;
mCacheFileName[0] = 0;
mSaveCache = false; mSaveCache = false;
} }
@ -521,6 +522,9 @@ bool lcPiecesLibrary::OpenCache()
{ {
struct stat CacheStat; struct stat CacheStat;
if (!mCacheFileName[0])
return false;
if (stat(mCacheFileName, &CacheStat) != 0 || mCacheFileModifiedTime != (lcuint64)CacheStat.st_mtime) if (stat(mCacheFileName, &CacheStat) != 0 || mCacheFileModifiedTime != (lcuint64)CacheStat.st_mtime)
return false; return false;