Copy variables when storing them on the stack

This commit is contained in:
Emmanuel BENOîT 2022-09-17 10:21:06 +02:00
parent 0519be9316
commit 9c4cc09021

View file

@ -119,7 +119,7 @@ class VariableStorage(MutableMapping):
data = {}
for v in variables:
if v in self._script_vars:
se = (True, self._script_vars[v])
se = (True, self._script_vars[v].copy())
else:
se = (False, None)
data[v] = se