Update STEPFileReader.cpp

StepFileReadder: initialize var with nullptr.
pull/850/head
Kim Kulling 2016-04-04 12:52:22 +02:00
parent f2d5921252
commit a2d9cbef7e
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ STEP::DB* STEP::ReadFileHeader(boost::shared_ptr<IOStream> stream)
if (list->GetSize() > 1) {
DefaultLogger::get()->warn(AddLineNumber("multiple schemas currently not supported",line));
}
const EXPRESS::STRING* string;
const EXPRESS::STRING* string( nullptr );
if (!list->GetSize() || !(string=dynamic_cast<const EXPRESS::STRING*>( (*list)[0].get() ))) {
throw STEP::SyntaxError("expected FILE_SCHEMA to contain a single string literal",line);
}