From a9030650ba08c6c9f640396bbd244b5c62ced47e Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sat, 28 Jan 2017 12:51:16 +0000 Subject: [PATCH] compiledata: Generate an error if the imported phoneme cannot be found. --- src/libespeak-ng/compiledata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index f83a512d..8bcdbfd9 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -1902,8 +1902,10 @@ static void ImportPhoneme(void) NextItem(tSTRING); - if ((ph = FindPhoneme(item_string)) == NULL) + if ((ph = FindPhoneme(item_string)) == NULL) { + error("Cannot find phoneme '%s' to import.", item_string); return; + } ph_mnem = phoneme_out->mnemonic; ph_code = phoneme_out->code;