Browse Source

code cleanup: remove unnecessary text_buf2

master
Juho Hiltunen 4 years ago
parent
commit
d1332d7f35
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/libespeak-ng/readclause.c

+ 3
- 4
src/libespeak-ng/readclause.c View File

@@ -846,11 +846,10 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_

if (iswupper(c1)) {
tr->clause_upper_count++;

if ((option_capitals == 2) && (sayas_mode == 0) && !iswupper(cprev)) {
char text_buf[40];
char text_buf2[30];
if (LookupSpecial(tr, "_cap", text_buf2) != NULL) {
sprintf(text_buf, "%s", text_buf2);
char text_buf[30];
if (LookupSpecial(tr, "_cap", text_buf) != NULL) {
j = strlen(text_buf);
if ((ix + j) < n_buf) {
strcpy(&buf[ix], text_buf);

Loading…
Cancel
Save