remove infinity loop ./busybox --help busybox

This commit is contained in:
"Vladimir N. Oleynik" 2005-09-05 11:25:27 +00:00
parent 8f99104362
commit 10a1fe6169

View File

@ -110,8 +110,9 @@ int busybox_main(int argc, char **argv)
/* Deal with --help. (Also print help when called with no arguments) */ /* Deal with --help. (Also print help when called with no arguments) */
if (argc==1 || !strcmp(argv[1],"--help") ) { if (argc==1 || !strcmp(argv[1],"--help") ) {
if (argc>2) run_applet_by_name(bb_applet_name=argv[2], argc, argv); if (argc>2) {
else { run_applet_by_name(bb_applet_name=argv[2], 2, argv);
} else {
const struct BB_applet *a; const struct BB_applet *a;
int col, output_width; int col, output_width;