From: Sean Bright Date: Wed, 12 Jul 2023 18:17:04 +0000 (-0400) Subject: func_export: Use correct function argument as variable name. X-Git-Tag: 21.0.0-pre1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22aabe64aba0acc65396b0b3d50e7510c5e9e1f;p=thirdparty%2Fasterisk.git func_export: Use correct function argument as variable name. Fixes #208 --- 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; }