[1.27.03] Windows, look for env variable ESPEAK_DATA_PATH.

espeakedit, fix crash in Compile_phoneme_data when there is no voices directory.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@58 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-07-03 11:32:43 +00:00
parent 26c3d3a9ee
commit 3303246b80
13 changed files with 96 additions and 76 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ voice_t *LoadVoice(const char *vname, int control)
language_type = voicename;
}
if(first_voice == NULL)
if((first_voice == NULL) && (f_voice != NULL))
{
first_voice = ReadVoiceFile(f_voice,buf+strlen(path_voices),voicename);
rewind(f_voice);