mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 05:46:19 +00:00
Fix the voice_dir logic in LoadVoice(voices.c) [clang scan-build]
This commit is contained in:
@@ -577,13 +577,13 @@ voice_t *LoadVoice(const char *vname, int control)
|
||||
voice_dir = "asia";
|
||||
else
|
||||
voice_dir = "other";
|
||||
}
|
||||
|
||||
sprintf(buf, "%s%s%c%s", path_voices, voice_dir, PATHSEP, voicename);
|
||||
sprintf(buf, "%s%s%c%s", path_voices, voice_dir, PATHSEP, voicename);
|
||||
|
||||
if (GetFileLength(buf) <= 0) {
|
||||
// if not found, look in "test" sub-directory
|
||||
sprintf(buf, "%stest%c%s", path_voices, PATHSEP, voicename);
|
||||
}
|
||||
if (GetFileLength(buf) <= 0) {
|
||||
// if not found, look in "test" sub-directory
|
||||
sprintf(buf, "%stest%c%s", path_voices, PATHSEP, voicename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user