This commit is contained in:
Samuel Thibault 2018-07-11 21:04:31 +00:00 committed by GitHub
commit ee133c7df0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;