From 84ff1090c2a9d1cf29363454b183b9d43bcbec49 Mon Sep 17 00:00:00 2001 From: kimmi Date: Thu, 24 Dec 2009 11:05:32 +0000 Subject: [PATCH] - BUGFIX: Fix compiler warning: variable is not initialized. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@514 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/extra/MakeVerboseFormat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/extra/MakeVerboseFormat.cpp b/code/extra/MakeVerboseFormat.cpp index a90d11c0d..e47c97196 100644 --- a/code/extra/MakeVerboseFormat.cpp +++ b/code/extra/MakeVerboseFormat.cpp @@ -84,14 +84,14 @@ bool MakeVerboseFormatProcess::MakeVerboseFormat(aiMesh* pcMesh) unsigned int iOldNumVertices = pcMesh->mNumVertices; const unsigned int iNumVerts = pcMesh->mNumFaces*3; - aiVector3D* pvPositions = new aiVector3D[iNumVerts]; + aiVector3D* pvPositions = new aiVector3D[ iNumVerts ]; - aiVector3D* pvNormals; + aiVector3D* pvNormals = NULL; if (pcMesh->HasNormals()) { pvNormals = new aiVector3D[iNumVerts]; } - aiVector3D* pvTangents, *pvBitangents; + aiVector3D* pvTangents = NULL, *pvBitangents = NULL; if (pcMesh->HasTangentsAndBitangents()) { pvTangents = new aiVector3D[iNumVerts];