Commit 6f26c55f authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed ticket #983

parent 22927ff1
......@@ -4790,9 +4790,12 @@ cvTypeOf( const void* struct_ptr )
{
CvTypeInfo* info = 0;
for( info = CvType::first; info != 0; info = info->next )
if( info->is_instance( struct_ptr ))
break;
if( struct_ptr )
{
for( info = CvType::first; info != 0; info = info->next )
if( info->is_instance( struct_ptr ))
break;
}
return info;
}
......
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