mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
ast_func_read() needs a writable copy of the function name to be passed
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1368,7 +1368,9 @@ static int action_getvar(struct mansession *s, const struct message *m)
|
||||
}
|
||||
|
||||
if (varname[strlen(varname) - 1] == ')') {
|
||||
ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
|
||||
char *copy = ast_strdupa(varname);
|
||||
|
||||
ast_func_read(c, copy, workspace, sizeof(workspace));
|
||||
} else {
|
||||
pbx_retrieve_variable(c, varname, &varval, workspace, sizeof(workspace), NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user