From 5fa7c03f076ae6f6780fce2e33e6e2add178ce6b Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Fri, 18 Jul 2014 21:24:03 +0000 Subject: [PATCH] stasis: fix call to ao2_t_alloc for stasis_message_router_create This fixes a build failure introduced by r3821. struct stasis_topic is opaque, so topic->name is unavailable. Switch to using stasis_topic_name(). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@419019 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/stasis_message_router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/stasis_message_router.c b/main/stasis_message_router.c index 900265e6c1..da288e864c 100644 --- a/main/stasis_message_router.c +++ b/main/stasis_message_router.c @@ -212,7 +212,7 @@ struct stasis_message_router *stasis_message_router_create( int res; RAII_VAR(struct stasis_message_router *, router, NULL, ao2_cleanup); - router = ao2_t_alloc(sizeof(*router), router_dtor, topic->name); + router = ao2_t_alloc(sizeof(*router), router_dtor, stasis_topic_name(topic)); if (!router) { return NULL; } -- 2.47.2