Make empty voice name select the default voice

See http://bugs.debian.org/872194
This commit is contained in:
Samuel Thibault 2018-06-30 15:43:56 +02:00
commit 1334d7ed8f

View file

@ -272,7 +272,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;