From b22aabe64aba0acc65396b0b3d50e7510c5e9e1f Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Wed, 12 Jul 2023 14:17:04 -0400 Subject: [PATCH] func_export: Use correct function argument as variable name. Fixes #208 --- funcs/func_export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/func_export.c b/funcs/func_export.c index e231b64107..d76483d197 100644 --- a/funcs/func_export.c +++ b/funcs/func_export.c @@ -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; }