diff --git a/core/Objid.cc b/core/Objid.cc index 28136c11af2dc0f5adcfdeb490f5bc3e932b4866..8296e60a16f683a7806854866f617dbf2aac3e1e 100644 --- a/core/Objid.cc +++ b/core/Objid.cc @@ -49,7 +49,7 @@ void OBJID::init_struct(int n_components) TTCN_error("Initializing an objid value with a negative number of " "components."); } - // TODO check n_components >= 2 + val_ptr = (objid_struct*)Malloc(sizeof(objid_struct) + (n_components - MIN_COMPONENTS) * sizeof(objid_element)); val_ptr->ref_count = 1;