mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed uninitialized variable.
This commit is contained in:
parent
e2df8f45b5
commit
ed05c622db
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue