From: Mark Spencer Date: Mon, 27 Dec 2004 13:08:45 +0000 (+0000) Subject: Fix for FreeBSD portability X-Git-Tag: 1.2.0-beta1~1576 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a91b07d340bd45acbae0c1725166cd587d58fe39;p=thirdparty%2Fasterisk.git Fix for FreeBSD portability git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4559 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_while.c b/apps/app_while.c index ab1d9d4729..a4a5c0c1d0 100755 --- a/apps/app_while.c +++ b/apps/app_while.c @@ -3,7 +3,7 @@ * * While Loop and ExecIf Implementations * - * Copyright Anthony Minessale + * Copyright 2004, Anthony Minessale * * Anthony Minessale * @@ -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';