diff --git a/dtool/src/dtoolbase/typeRegistry.cxx b/dtool/src/dtoolbase/typeRegistry.cxx index 4407b91622..0c0fd456b9 100644 --- a/dtool/src/dtoolbase/typeRegistry.cxx +++ b/dtool/src/dtoolbase/typeRegistry.cxx @@ -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()) {