patch rewire with empty name

This commit is contained in:
jiunhaochen 2025-05-26 01:44:04 +08:00
parent 0ae04514cd
commit 04161dfda8
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);
}
}
}