This commit is contained in:
owomomo 2020-12-19 14:49:51 +08:00
parent a673805f42
commit 0197920068
1 changed files with 1 additions and 1 deletions

View File

@ -1061,7 +1061,7 @@ void AddNewSymbolicName(uint16 newAddress, char* newOffset, char* newName, char*
// found matching address - replace its name and comment
if (node->name)
free(node->name);
if (strlen(node->name))
if (strlen(newName))
{
node->name = (char*)malloc(strlen(newName) + 1);
strcpy(node->name, newName);