mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
cleanup: fix unreadVariable code smell for variant_name in SelectVoiceByName()
This commit is contained in:
@@ -998,7 +998,6 @@ espeak_VOICE *SelectVoiceByName(espeak_VOICE **voices, const char *name2)
|
||||
int match_fname2 = -1;
|
||||
int match_name = -1;
|
||||
const char *id; // this is the filename within espeak-ng-data/voices
|
||||
char *variant_name;
|
||||
int last_part_len;
|
||||
char last_part[41];
|
||||
char name[40];
|
||||
@@ -1010,10 +1009,6 @@ espeak_VOICE *SelectVoiceByName(espeak_VOICE **voices, const char *name2)
|
||||
}
|
||||
|
||||
strncpy0(name, name2, sizeof(name));
|
||||
if ((variant_name = strchr(name, '+')) != NULL) {
|
||||
*variant_name = 0;
|
||||
variant_name++;
|
||||
}
|
||||
|
||||
sprintf(last_part, "%c%s", PATHSEP, name);
|
||||
last_part_len = strlen(last_part);
|
||||
|
||||
Reference in New Issue
Block a user