mirror of
https://github.com/nasa/trick.git
synced 2025-02-18 16:30:21 +00:00
Fix clearing arrays of strings
This commit is contained in:
parent
2deb7cd180
commit
32c409e139
@ -92,7 +92,7 @@ void Trick::MemoryManager::clear_rvalue( void* base_address, ATTRIBUTES* attr, i
|
||||
*(void**)final_address = (void*)NULL;
|
||||
break;
|
||||
case TRICK_STRING :
|
||||
final_address = (char*)base_address + offset * sizeof(void*);
|
||||
final_address = (char*)base_address + offset * sizeof(std::string);
|
||||
*(std::string*)final_address = "";
|
||||
break;
|
||||
case TRICK_STL :
|
||||
|
Loading…
x
Reference in New Issue
Block a user