From 145922667e59e3bbc17d91c1e4c3194d9d9d41be Mon Sep 17 00:00:00 2001 From: "John M. Penn" Date: Tue, 29 Mar 2016 16:00:55 -0500 Subject: [PATCH] In making reference attributes, set units to dash dash --- .../MemoryManager/MemoryManager_make_reference_attr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trick_source/sim_services/MemoryManager/MemoryManager_make_reference_attr.cpp b/trick_source/sim_services/MemoryManager/MemoryManager_make_reference_attr.cpp index 5c096c52..53d7c43d 100644 --- a/trick_source/sim_services/MemoryManager/MemoryManager_make_reference_attr.cpp +++ b/trick_source/sim_services/MemoryManager/MemoryManager_make_reference_attr.cpp @@ -3,6 +3,8 @@ #include "trick/MemoryManager.hh" +static char nil_units = "--"; + // MEMBER FUNCTION ATTRIBUTES* Trick::MemoryManager::make_reference_attr( ALLOC_INFO* alloc_info) { @@ -14,7 +16,7 @@ ATTRIBUTES* Trick::MemoryManager::make_reference_attr( ALLOC_INFO* alloc_info) { reference_attr = (ATTRIBUTES *) calloc(1, (int) sizeof(ATTRIBUTES)); reference_attr->name = alloc_info->name; reference_attr->type_name = NULL; - reference_attr->units = NULL; + reference_attr->units = nil_units; reference_attr->alias = NULL; reference_attr->user_defined = NULL; reference_attr->des = NULL;