Browse Source

cleanup: fix unreadVariable code smell for variant_name in SelectVoiceByName()

master
Juho Hiltunen 2 years ago
parent
commit
507a5f5410
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      src/libespeak-ng/voices.c

+ 0
- 5
src/libespeak-ng/voices.c View File

int match_fname2 = -1; int match_fname2 = -1;
int match_name = -1; int match_name = -1;
const char *id; // this is the filename within espeak-ng-data/voices const char *id; // this is the filename within espeak-ng-data/voices
char *variant_name;
int last_part_len; int last_part_len;
char last_part[41]; char last_part[41];
char name[40]; char name[40];
} }


strncpy0(name, name2, sizeof(name)); strncpy0(name, name2, sizeof(name));
if ((variant_name = strchr(name, '+')) != NULL) {
*variant_name = 0;
variant_name++;
}


sprintf(last_part, "%c%s", PATHSEP, name); sprintf(last_part, "%c%s", PATHSEP, name);
last_part_len = strlen(last_part); last_part_len = strlen(last_part);

Loading…
Cancel
Save