mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 03:59:01 +00:00
use ast_strdup instead of strdup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -188,7 +188,7 @@ static int macro_exec(struct ast_channel *chan, void *data)
|
|||||||
snprintf(varname, sizeof(varname), "ARG%d", argc);
|
snprintf(varname, sizeof(varname), "ARG%d", argc);
|
||||||
s = pbx_builtin_getvar_helper(chan, varname);
|
s = pbx_builtin_getvar_helper(chan, varname);
|
||||||
if (s)
|
if (s)
|
||||||
oldargs[argc] = strdup(s);
|
oldargs[argc] = ast_strdup(s);
|
||||||
pbx_builtin_setvar_helper(chan, varname, cur);
|
pbx_builtin_setvar_helper(chan, varname, cur);
|
||||||
argc++;
|
argc++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user