mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +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;
|
*(void**)final_address = (void*)NULL;
|
||||||
break;
|
break;
|
||||||
case TRICK_STRING :
|
case TRICK_STRING :
|
||||||
final_address = (char*)base_address + offset * sizeof(void*);
|
final_address = (char*)base_address + offset * sizeof(std::string);
|
||||||
*(std::string*)final_address = "";
|
*(std::string*)final_address = "";
|
||||||
break;
|
break;
|
||||||
case TRICK_STL :
|
case TRICK_STL :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user