In Sorcery pass the name of the object being allocated to the allocator.
authorJoshua Colp <jcolp@digium.com>
Mon, 20 May 2013 14:02:37 +0000 (14:02 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 20 May 2013 14:02:37 +0000 (14:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389204 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sorcery.c

index aa48222..99e4c55 100644 (file)
@@ -983,7 +983,7 @@ void *ast_sorcery_alloc(const struct ast_sorcery *sorcery, const char *type, con
        struct ast_sorcery_object_details *details;
 
        if (!object_type || !object_type->type.item_alloc ||
-           !(details = object_type->type.item_alloc(""))) {
+           !(details = object_type->type.item_alloc(id))) {
                return NULL;
        }