MT#59962 DSMCoreModule: ensure AmArg is actually set

For the local usage of AmArg (`AmArg var_struct;`),
in case when when a custom string to array convertor
is used, ensure that the `var_struct` was actually
set to something reasonable (non-Undef).

Change-Id: Ic5208a60a028788d7c61d8b9e731d6c6f982fcb1
master
Donat Zenichev 2 months ago
parent 5faf948b86
commit a7b654cdbb

@ -1409,7 +1409,10 @@ EXEC_ACTION_START(SCDIAction) {
lb++;
//has_vars = true;
}
di_args.push(var_struct);
if (var_struct.getType() != AmArg::Undef)
di_args.push(var_struct);
} else if (p.length() > 7 &&
p.substr(0, 7) =="(array)") {
p.erase(0, 7);

Loading…
Cancel
Save