[asterisk-commits] rmudgett: trunk r390734 - /trunk/main/stasis_message_router.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 6 15:50:27 CDT 2013


Author: rmudgett
Date: Thu Jun  6 15:50:25 2013
New Revision: 390734

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390734
Log:
Fix compiler warning.

Modified:
    trunk/main/stasis_message_router.c

Modified: trunk/main/stasis_message_router.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/stasis_message_router.c?view=diff&rev=390734&r1=390733&r2=390734
==============================================================================
--- trunk/main/stasis_message_router.c (original)
+++ trunk/main/stasis_message_router.c Thu Jun  6 15:50:25 2013
@@ -208,8 +208,8 @@
 static int add_route(struct stasis_message_router *router,
 		     struct stasis_message_route *route)
 {
+	RAII_VAR(struct stasis_message_route *, existing_route, NULL, ao2_cleanup);
 	SCOPED_AO2LOCK(lock, router);
-	RAII_VAR(struct stasis_message_route *, existing_route, NULL, ao2_cleanup);
 
 	if ((existing_route = find_route(router, route->message_type))) {
 		return -1;




More information about the asterisk-commits mailing list