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:
Juho Hiltunen
2021-07-30 17:18:47 +03:00
parent aa992d8e5a
commit e91d0a5861
-2
View File
@@ -959,8 +959,6 @@ voice_t *LoadVoice(const char *vname, int control)
return NULL; // no dictionary loaded
}
}
voice_languages[langix] = 0;
}
return voice;