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: 20.5.0-rc1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29fbf1b2c8ae0f0a6a65205d6ef305aeac55eb5e;p=thirdparty%2Fasterisk.git func_export: Use correct function argument as variable name. Fixes #208 (cherry picked from commit b8aee4a2c63cee4ea35828c83ec412656d9b42fe) --- 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; }