From e5f95289ad3fb4f7c2e6ab43229e4a665018b839 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sun, 20 Nov 2022 19:15:19 +0200 Subject: [PATCH] code cleanup: remove setting unread variable. --- src/libespeak-ng/compiledata.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index 5d22924d..10bf2790 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -686,9 +686,7 @@ static int NextItem(CompileContext *ctx, int type) if ((c == ')') || (c == '(') || (c == ',')) ctx->item_terminator = c; - if ((c == ')') || (c == ',')) - c = ' '; - else if (!feof(ctx->f_in)) + if (!feof(ctx->f_in) && !(c == ')' || c == ',')) unget_char(ctx, c); if (type == tSTRING)