]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
func_export: Use correct function argument as variable name.
authorSean Bright <sean@seanbright.com>
Wed, 12 Jul 2023 18:17:04 +0000 (14:17 -0400)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 18 Jul 2023 14:55:39 +0000 (14:55 +0000)
Fixes #208

funcs/func_export.c

index e231b641072ef0a9fb5ce854a750c0ee32723f07..d76483d197bd6febbab5b4f8f34b9cd4621145dc 100644 (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;
 }