Browse Source

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).
master
Juho Hiltunen 4 years ago
parent
commit
e91d0a5861
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/libespeak-ng/voices.c

+ 0
- 2
src/libespeak-ng/voices.c 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;

Loading…
Cancel
Save