[F] Uninitialized variables.

pull/1981/head
smalcom 2018-05-21 17:38:01 +03:00
parent 4a81b7f0d1
commit 8abcc454ad
3 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ void D3MFExporter::writeMetaData() {
return;
}
const aiString *key;
const aiString *key = nullptr;
const aiMetadataEntry *entry(nullptr);
for ( size_t i = 0; i < numMetaEntries; ++i ) {
mScene->mMetaData->Get( i, key, entry );

View File

@ -210,7 +210,7 @@ TEST_F( utMetadata, copy_test ) {
// int32_t test
{
int32_t v;
int32_t v = 0;
bool ok = copy.Get( "int32", v );
EXPECT_TRUE( ok );
EXPECT_EQ( i32v, v );

View File

@ -78,7 +78,7 @@ TEST_F(SharedPPDataTest, testPODProperty)
{
int i = 5;
shared->AddProperty("test",i);
int o;
int o = 0;
EXPECT_TRUE(shared->GetProperty("test",o));
EXPECT_EQ(5, o);
EXPECT_FALSE(shared->GetProperty("test2",o));