[git commit] echo: fix !ENABLE_FEATURE_FANCY_ECHO build

Denys Vlasenko vda.linux at googlemail.com
Wed Apr 14 16:55:30 UTC 2021


commit: https://git.busybox.net/busybox/commit/?id=7c813fbabfa672e74a387ab457b9fa39ca1a57aa
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/echo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coreutils/echo.c b/coreutils/echo.c
index 61ba060ec..aab177cee 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -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;


More information about the busybox-cvs mailing list