Skip to content
Snippets Groups Projects
Commit a91b07d3 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix for FreeBSD portability

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 83728dbd
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment