From 59006f4762f855363455bb2c69601d8f97b93d08 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 3 Jan 2016 20:08:49 +0000 Subject: [PATCH] Fix the LoadDataFile logic from commit 619fc6424d093b9a684eda77a9916361af15b563 --- src/libespeak-ng/compiledata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index d380d3cc..acb1ccf6 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -1513,7 +1513,7 @@ static espeak_ng_STATUS LoadDataFile(const char *path, int control, int *addr) p = (REF_HASH_TAB *)p->link; } - if (addr == 0) { + if (*addr == 0) { sprintf(buf, "%s/../phsource/%s", path_home, path); if ((f = fopen(buf, "rb")) == NULL) { @@ -1611,7 +1611,7 @@ static void CompileToneSpec(void) static void CompileSound(int keyword, int isvowel) { - int addr; + int addr = 0; int value = 0; char path[N_ITEM_STRING]; static int sound_instns[] = { i_FMT, i_WAV, i_VWLSTART, i_VWLENDING, i_WAVADD };