aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_while.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_while.c')
-rwxr-xr-xapps/app_while.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_while.c b/apps/app_while.c
index ab1d9d472..a4a5c0c1d 100755
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -3,7 +3,7 @@
*
* While Loop and ExecIf Implementations
*
- * Copyright Anthony Minessale <anthmct@yahoo.com>
+ * Copyright 2004, Anthony Minessale <anthmct@yahoo.com>
*
* Anthony Minessale <anthmct@yahoo.com>
*
@@ -56,13 +56,13 @@ LOCAL_USER_DECL;
static int execif_exec(struct ast_channel *chan, void *data) {
int res=0;
- struct localuser *u;
- LOCAL_USER_ADD(u);
+ struct localuser *u;
char *myapp = NULL;
char *mydata = NULL;
char *expr = NULL;
struct ast_app *app = NULL;
+ LOCAL_USER_ADD(u);
expr = ast_strdupa((char *) data);
if ((myapp = strchr(expr,'|'))) {
*myapp = '\0';