From 204ba36938763876f698bd29eec4c436b837294e Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Tue, 6 Jun 2006 20:37:51 +0000
Subject: [PATCH] move a declaration to the beginning of a block

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_followme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/app_followme.c b/apps/app_followme.c
index 5e71cc3354..bdf4544fee 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -848,8 +848,8 @@ static void findmeexec(void *args)
 							outbound->cdr = ast_cdr_alloc();
 						}
 						if (outbound->cdr) {
-							ast_cdr_init(outbound->cdr, outbound);
 							char tmp[256];
+							ast_cdr_init(outbound->cdr, outbound);
 							snprintf(tmp, 256, "%s/%s", "Local", dialarg);
 							ast_cdr_setapp(outbound->cdr,"FollowMe",tmp);
 							ast_cdr_update(outbound);
-- 
GitLab