mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 05:38:11 +00:00
In Sorcery pass the name of the object being allocated to the allocator.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -983,7 +983,7 @@ void *ast_sorcery_alloc(const struct ast_sorcery *sorcery, const char *type, con
|
|||||||
struct ast_sorcery_object_details *details;
|
struct ast_sorcery_object_details *details;
|
||||||
|
|
||||||
if (!object_type || !object_type->type.item_alloc ||
|
if (!object_type || !object_type->type.item_alloc ||
|
||||||
!(details = object_type->type.item_alloc(""))) {
|
!(details = object_type->type.item_alloc(id))) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user