echo: fix !ENABLE_FEATURE_FANCY_ECHO build

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-04-14 18:55:30 +02:00
parent fe2d8065e3
commit 7c813fbabf

View File

@ -87,6 +87,7 @@ int echo_main(int argc UNUSED_PARAM, char **argv)
char *out;
char *buffer;
unsigned buflen;
int err;
#if !ENABLE_FEATURE_FANCY_ECHO
enum {
eflag = 0, /* 0 -- disable escape sequences */
@ -97,7 +98,6 @@ int echo_main(int argc UNUSED_PARAM, char **argv)
#else
char nflag = 1;
char eflag = 0;
int err;
while ((arg = *++argv) != NULL) {
char n, e;