Fix building.
authorJoshua Colp <jcolp@digium.com>
Mon, 8 Jul 2013 15:11:07 +0000 (15:11 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 8 Jul 2013 15:11:07 +0000 (15:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393807 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/stasis/control.c

index 6a7a9ba..1fdcb8d 100644 (file)
@@ -209,9 +209,8 @@ int stasis_app_control_continue(struct stasis_app_control *control, const char *
 
 char *stasis_app_control_get_channel_var(struct stasis_app_control *control, const char *variable)
 {
-       SCOPED_CHANNELLOCK(lockvar, control->channel);
-
        RAII_VAR(struct ast_str *, tmp, ast_str_create(32), ast_free);
+       SCOPED_CHANNELLOCK(lockvar, control->channel);
 
        if (!tmp) {
                return NULL;