diff options
Diffstat (limited to 'main/sorcery.c')
-rw-r--r-- | main/sorcery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/sorcery.c b/main/sorcery.c index 44e247a38..d0aee4a92 100644 --- a/main/sorcery.c +++ b/main/sorcery.c @@ -540,7 +540,7 @@ int __ast_sorcery_object_field_register(struct ast_sorcery *sorcery, const char int pos; va_list args; - if (!object_type || !object_type->type.item_alloc) { + if (!strcmp(type, "id") || !object_type || !object_type->type.item_alloc) { return -1; } |