Fixes for uninitialized variable warnings.

This commit is contained in:
Sherief Farouk
2013-08-09 19:52:15 -04:00
parent a90e208e6d
commit 9b591fadb8
3 changed files with 5 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ aiReturn aiGetMaterialFloatArray(const aiMaterial* pMat,
}
// data is given in floats, simply copy it
unsigned int iWrite;
unsigned int iWrite = 0;
if( aiPTI_Float == prop->mType || aiPTI_Buffer == prop->mType) {
iWrite = prop->mDataLength / sizeof(float);
if (pMax) {
@@ -175,7 +175,7 @@ aiReturn aiGetMaterialIntegerArray(const aiMaterial* pMat,
}
// data is given in ints, simply copy it
unsigned int iWrite;
unsigned int iWrite = 0;
if( aiPTI_Integer == prop->mType || aiPTI_Buffer == prop->mType) {
iWrite = prop->mDataLength / sizeof(int32_t);
if (pMax) {