From 139417e8e186ec9237ffd4ae96d07a4b76b0ebbb Mon Sep 17 00:00:00 2001 From: Sean Budd Date: Thu, 9 Jun 2022 11:23:48 +1000 Subject: [PATCH] Revert "code cleanup: don't add a \0 to voices_language in LoadVoice()." This reverts commit e91d0a58612a01954687d34c7417cf0fbd3cadaa. --- src/libespeak-ng/voices.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libespeak-ng/voices.c b/src/libespeak-ng/voices.c index a7603d47..71570208 100644 --- a/src/libespeak-ng/voices.c +++ b/src/libespeak-ng/voices.c @@ -959,6 +959,8 @@ voice_t *LoadVoice(const char *vname, int control) return NULL; // no dictionary loaded } } + + voice_languages[langix] = 0; } return voice;