Skip to content
Snippets Groups Projects
Commit 15705f94 authored by Josh Roberson's avatar Josh Roberson
Browse files

Issue #5737

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d8dfa443
Branches
Tags
No related merge requests found
2005-11-14 Josh Roberson <josh@asteirasgi.com>
* Fix crash on variable passing from AMI originate (issue #5737)
2005-11-14 Russell Bryant <russell@digium.com>
* many files: Merge doxygen documentation updates. (issue #5605)
......
......@@ -329,9 +329,11 @@ struct ast_variable *astman_get_variables(struct message *m)
if (!(var = ast_strdupa(m->headers[x] + varlen)))
return head;
if ((var_count = ast_app_separate_args(var, '|', vars, sizeof(vars) / sizeof(var[0])))) {
if ((var_count = ast_app_separate_args(var, '|', vars, sizeof(vars) / sizeof(vars[0])))) {
for (y = 0; y < var_count; y++) {
var = val = vars[y];
if (!vars[y])
continue;
var = val = ast_strdupa(vars[y]);
strsep(&val, "=");
if (!val || ast_strlen_zero(var))
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment