HLLib: always initialize file access mode variable

Fixes the warning appearing thanks to -Wuninitialized.
This commit is contained in:
Ondřej Hošek 2013-11-22 01:55:11 +01:00
parent f5a28b2729
commit d2fdc13491
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ hlBool CFileMapping::OpenInternal(hlUInt uiMode)
}
}
#else
hlInt iMode;
hlInt iMode = 0;
if((uiMode & HL_MODE_READ) && (uiMode & HL_MODE_WRITE))
{

View File

@ -82,7 +82,7 @@ hlBool CFileStream::Open(hlUInt uiMode)
return hlFalse;
}
#else
hlInt iMode;
hlInt iMode = 0;
if((uiMode & HL_MODE_READ) && (uiMode & HL_MODE_WRITE))
{