prevent crash, return sensible value from find_type()

This commit is contained in:
David Rose 2007-05-15 17:46:08 +00:00
parent 4af740cebe
commit f89ef1f257

View File

@ -229,7 +229,7 @@ TypeHandle TypeRegistry::
find_type(const string &name) const {
_lock->lock();
TypeHandle handle;
TypeHandle handle = TypeHandle::none();
NameRegistry::const_iterator ri;
ri = _name_registry.find(name);
if (ri != _name_registry.end()) {