[PATCH] weston-launch: Handle invalid command line options
Otavio Salvador
otavio at ossystems.com.br
Sat May 7 11:57:40 UTC 2016
From: Tom Hochstein <tom.hochstein at nxp.com>
Exit the program if an unrecognized command line option is found.
Signed-off-by; Tom Hochstein <tom.hochstein at nxp.com>
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
src/weston-launch.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/weston-launch.c b/src/weston-launch.c
index b8dfb17..9987d8e 100644
--- a/src/weston-launch.c
+++ b/src/weston-launch.c
@@ -703,6 +703,8 @@ main(int argc, char *argv[])
case 'h':
help("weston-launch");
exit(EXIT_FAILURE);
+ default:
+ exit(EXIT_FAILURE);
}
}
--
2.8.2
More information about the wayland-devel
mailing list