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;