From 5637f837a358350b697c0e915620268a55440ff7 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Mon, 1 Feb 2016 10:33:40 +0100 Subject: [PATCH] - fixed bug related to test case SrvN1c: GetDataDirectory returns wrong variable specification for non-existent sub variable e.g. Mod.ctlModel.XYZ --- src/mms/iso_mms/common/mms_type_spec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mms/iso_mms/common/mms_type_spec.c b/src/mms/iso_mms/common/mms_type_spec.c index e88e70d5..9ccc1a12 100644 --- a/src/mms/iso_mms/common/mms_type_spec.c +++ b/src/mms/iso_mms/common/mms_type_spec.c @@ -165,6 +165,8 @@ MmsVariableSpecification_getNamedVariableRecursive(MmsVariableSpecification* var namedVariable = MmsVariableSpecification_getNamedVariableRecursive(namedVariable, separator + 1); } + else /* ERROR: request for a child element of a simple (leaf-node) variable */ + return NULL; } return namedVariable;