diff --git a/src/kernel/item.c b/src/kernel/item.c index ca6c2f32d..1b312c655 100644 --- a/src/kernel/item.c +++ b/src/kernel/item.c @@ -187,6 +187,7 @@ resource_type *rt_get_or_create(const char *name) { else { rtype->_name = _strdup(name); rt_register(rtype); + return rt_find(name); } } return rtype;