Make empty voice name select the default voice

See http://bugs.debian.org/872194
This fixes #11.
This commit is contained in:
Samuel Thibault 2018-06-30 15:43:56 +02:00 committed by William Hubbs
commit 5f01999726

View file

@ -311,7 +311,7 @@ int initialize_espeak(struct synth_t *s)
espeak_SetSynthCallback(acsint_callback);
/* Setup initial voice parameters */
if (defaultVoice) {
if (defaultVoice && defaultVoice[0]) {
set_voice(s, defaultVoice);
free(defaultVoice);
defaultVoice = NULL;