From 7c7081cb32647728723a5ee6ba3e0214417fccf5 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Fri, 30 Mar 2018 08:43:20 +0100 Subject: [PATCH] Handle the '--compile=' case when reporting a 'Voice name not specified' error. --- src/espeak-ng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espeak-ng.c b/src/espeak-ng.c index 699695cb..4ed4b830 100644 --- a/src/espeak-ng.c +++ b/src/espeak-ng.c @@ -441,7 +441,7 @@ int main(int argc, char **argv) break; case 0x101: // --compile-debug case 0x102: // --compile - if (optarg2 != NULL) { + if (optarg2 != NULL && *optarg2) { strncpy0(voicename, optarg2, sizeof(voicename)); flag_compile = c; quiet = true;