Fixed some Expression and Operand memory issues.

This commit is contained in:
Brad Arant committed 2024-09-26 16:58:55 -07:00
1 parent 3db9227adc
commit 5a97da3d1c
8 files changed
+10 -11

No files matched your search

+1 -1
View File
@@ -7,7 +7,6 @@ namespace jet {
__set::__set(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
output = false;
processContainer(container);
if(!variableDefined("name"))
throw coreutils::Exception("set tag must have name defined.");
if(!variableDefined("expr") && variableDefined("value") && hasContainer)
@@ -24,6 +23,7 @@ namespace jet {
throw coreutils::Exception("Cannot use eval with expr.");
global.variables[variables["name"]] = Expression(variables["expr"]).string;
} else if(hasContainer) {
processContainer(container);
if(evaluate) {
global.variables[variables["name"]] = out;
} else {