Fix sorcery for some rather picky regex implementations.
authorDavid M. Lee <dlee@digium.com>
Thu, 1 Aug 2013 21:19:27 +0000 (21:19 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 1 Aug 2013 21:19:27 +0000 (21:19 +0000)
Some regex implementations won't compile an empty string. Assuming that
it's equivalent of a regex that will match anything, use ".?" instead.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396035 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sorcery.c

index 4c60d1d..bb803c1 100644 (file)
@@ -585,7 +585,7 @@ int ast_sorcery_object_register(struct ast_sorcery *sorcery, const char *type, a
 
        object_type->type.name = object_type->name;
        object_type->type.type = ACO_ITEM;
-       object_type->type.category = "";
+       object_type->type.category = ".?";
        object_type->type.item_alloc = alloc;
 
        object_type->transform = transform;