From a7b654cdbb624e36c514740dd312769a7fbc6b50 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Fri, 25 Apr 2025 12:08:15 +0200 Subject: [PATCH] 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 --- apps/dsm/DSMCoreModule.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dsm/DSMCoreModule.cpp b/apps/dsm/DSMCoreModule.cpp index b9d8cf5c..8861f875 100644 --- a/apps/dsm/DSMCoreModule.cpp +++ b/apps/dsm/DSMCoreModule.cpp @@ -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);