mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
- fix invocation without any argument
This commit is contained in:
parent
42bffbf360
commit
def8260219
@ -34,6 +34,8 @@ int bb_echo(char **argv)
|
||||
nflag = 1, /* 1 -- print '\n' */
|
||||
};
|
||||
arg = ++argv;
|
||||
if (!arg)
|
||||
goto newline_ret;
|
||||
#else
|
||||
const char *p;
|
||||
char nflag = 1;
|
||||
@ -107,9 +109,7 @@ int bb_echo(char **argv)
|
||||
putchar(' ');
|
||||
}
|
||||
|
||||
#if ENABLE_FEATURE_FANCY_ECHO
|
||||
newline_ret:
|
||||
#endif
|
||||
if (nflag) {
|
||||
putchar('\n');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user