mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +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' */
|
nflag = 1, /* 1 -- print '\n' */
|
||||||
};
|
};
|
||||||
arg = ++argv;
|
arg = ++argv;
|
||||||
|
if (!arg)
|
||||||
|
goto newline_ret;
|
||||||
#else
|
#else
|
||||||
const char *p;
|
const char *p;
|
||||||
char nflag = 1;
|
char nflag = 1;
|
||||||
@ -107,9 +109,7 @@ int bb_echo(char **argv)
|
|||||||
putchar(' ');
|
putchar(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_FEATURE_FANCY_ECHO
|
|
||||||
newline_ret:
|
newline_ret:
|
||||||
#endif
|
|
||||||
if (nflag) {
|
if (nflag) {
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user