mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
code cleanup: don't add a \0 to voices_language in LoadVoice().
This is unnecessary since the string is already null terminated in the V_LANGUAGE switch case. sscanf creates a null terminated string in language_name, which is then copied to voice_language by strcpy (keeping the \0).
This commit is contained in:
@@ -959,8 +959,6 @@ voice_t *LoadVoice(const char *vname, int control)
|
||||
return NULL; // no dictionary loaded
|
||||
}
|
||||
}
|
||||
|
||||
voice_languages[langix] = 0;
|
||||
}
|
||||
|
||||
return voice;
|
||||
|
||||
Reference in New Issue
Block a user