diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-05 08:43:22 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-05 08:43:22 (GMT) |
commit | 85c8dc8ce9168c8a1947309bb70e584c5b51c7a4 (patch) | |
tree | 61f3d7aefc24dd4a52db244c56ac4f9fabecb11b /src/uscxml/Interpreter.cpp | |
parent | b7566ef964dca8612257629e182eaf4e467745ba (diff) | |
download | uscxml-85c8dc8ce9168c8a1947309bb70e584c5b51c7a4.zip uscxml-85c8dc8ce9168c8a1947309bb70e584c5b51c7a4.tar.gz uscxml-85c8dc8ce9168c8a1947309bb70e584c5b51c7a4.tar.bz2 |
do not overwrite assigned expression with undefined
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r-- | src/uscxml/Interpreter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index 85c2e04..5f54cc7 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -336,7 +336,10 @@ void Interpreter::initializeData(const Node<std::string>& data) { // expression given directly std::string value = ATTR(data, "expr"); _dataModel.assign(ATTR(data, "id"), value); - } else if (HAS_ATTR(data, "src")) { + return; + } + + if (HAS_ATTR(data, "src")) { // fetch us some string and proess below URL srcURL(ATTR(data, "src")); if (!srcURL.isAbsolute()) |