Commit 083a4c56 authored by Sean McBride's avatar Sean McBride
Browse files

Return early to avoid null to strcmp()

Change-Id: I9f3ec522ecd1f96d12413342060508a1b990cc4d
parent abdb84d5
......@@ -145,6 +145,11 @@ vtkXMLDataElement* vtkXMLCompositeDataReader::GetPrimaryElement()
//----------------------------------------------------------------------------
vtkXMLReader* vtkXMLCompositeDataReader::GetReaderOfType(const char* type)
{
if (!type)
{
return 0;
}
vtkXMLCompositeDataReaderInternals::ReadersType::iterator iter =
this->Internal->Readers.find(type);
if (iter != this->Internal->Readers.end())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment