Pass the object type name to the configuration framework.
authorJoshua Colp <jcolp@digium.com>
Tue, 2 Apr 2013 12:18:50 +0000 (12:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 2 Apr 2013 12:18:50 +0000 (12:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384518 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sorcery.c

index d0f2e7d..8b55522 100644 (file)
@@ -475,6 +475,7 @@ int ast_sorcery_object_register(struct ast_sorcery *sorcery, const char *type, a
                return -1;
        }
 
+       object_type->type.name = object_type->name;
        object_type->type.type = ACO_ITEM;
        object_type->type.category = "";
        object_type->type.item_alloc = alloc;