Remove a redundant line.
PATCH 1/1 Remove a redundant line.
Signed-off-by Masaki Muranaka <[email protected]>
--- commands/echo.c | 1 - 1 file changed, 1 deletion(-)
commands/echo.c +0 -1
@@ -55,7 +55,6 @@ static int do_echo(int argc, char *argv[])break ;case 'o' : oflags |=O_TRUNC ; - file = argv[optind +1 ];if (optind +1 < argc) file = argv[optind +1 ];else
Signature · 7 lines
1.8.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 11 lines
Signed-off-by Masaki Muranaka <[email protected]>--- commands/echo.c | 1 - 1 file changed, 1 deletion(-)commands/echo.c +0
-0
commands/echo.c static int do_echo(int argc, char *argv[]) · line 60
Quoted 7 lines
commands/echo.c +0
-1@@ -55,7 +55,6 @@ static int do_echo(int argc, char *argv[])break ;case 'o' : oflags |=O_TRUNC ; - file = argv[optind +1 ];if (optind +1 < argc) file = argv[optind +1 ];else
Nice catch. This is a possible crash.
---
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 1 line · Masaki Muranaka
Signed-off-by Masaki Muranaka <[email protected]>
Applied, thanks
Sascha
Quoted 25 lines
--- commands/echo.c | 1 - 1 file changed, 1 deletion(-)commands/echo.c +0
-1@@ -55,7 +55,6 @@ static int do_echo(int argc, char *argv[])break ;case 'o' : oflags |=O_TRUNC ; - file = argv[optind +1 ];if (optind +1 < argc) file = argv[optind +1 ];else Signature · 7 lines
1.8.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox