Skip to contentSkip to conversation

Remove a redundant line.

PATCH Applied Masaki Muranaka 3 participants 3 messages Jun 2, 2013 – Jun 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove a redundant line.

---
 commands/echo.c | 1 -
 1 file changed, 1 deletion(-)
commands/echo.c +0 -1
index 8929234..4dfd870 100644
@@ -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
#1 lore raw
Quoted 11 lines
---
 commands/echo.c | 1 -
 1 file changed, 1 deletion(-)
commands/echo.c +0 -0
index 8929234..4dfd870 100644

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

Applied
#2 lore raw
In reply to Masaki Muranaka
Quoted 1 line · Masaki Muranaka

Applied, thanks

Sascha

Quoted 25 lines
---
 commands/echo.c | 1 -
 1 file changed, 1 deletion(-)
commands/echo.c +0 -1
index 8929234..4dfd870 100644
@@ -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