[PATCH] commands/splash: fix '-y' option handling

Antony Pavlov antonynpavlov at gmail.com
Sun Jan 25 05:22:13 PST 2015


The '-y' and '-o' options are independent,
so just add missing 'break'.

Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 commands/splash.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/commands/splash.c b/commands/splash.c
index 9bd84fb..077c0e4 100644
--- a/commands/splash.c
+++ b/commands/splash.c
@@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])
 			break;
 		case 'y':
 			s.y = simple_strtoul(optarg, NULL, 0);
+			break;
 		case 'o':
 			offscreen = 1;
 		}
-- 
2.1.4




More information about the barebox mailing list