Merge pull request #416 from chenjunhao0315/master

patch rewire with empty name
This commit is contained in:
alanminko 2025-05-25 22:27:43 -07:00 committed by GitHub
commit 0a55186553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,11 @@ void Miaig::setName(char *pName) {
if (_data->pName) {
free(_data->pName);
}
_data->pName = strdup(pName);
if (pName == NULL || pName[0] == '\0') {
_data->pName = strdup("rewire_miaig");
} else {
_data->pName = strdup(pName);
}
}
}