func_export: Use correct function argument as variable name.

Fixes #208
This commit is contained in:
Sean Bright 2023-07-12 14:17:04 -04:00
parent 879d4ff56a
commit b8aee4a2c6
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ static int func_export_write(struct ast_channel *chan, const char *function, cha
return -1;
}
pbx_builtin_setvar_helper(ochan, data, value);
pbx_builtin_setvar_helper(ochan, args.var, value);
ast_channel_unref(ochan);
return 0;
}