From 4889b4ceee07ceb81597daad95643418e2066d3c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 10 Mar 2014 13:15:50 +0100 Subject: [PATCH] Added missing detection of invalid flags. --- tests/events.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/events.c b/tests/events.c index f5babdde..71f88080 100644 --- a/tests/events.c +++ b/tests/events.c @@ -491,6 +491,10 @@ int main(int argc, char** argv) case 'n': count = (int) strtol(optarg, NULL, 10); break; + + default: + usage(); + exit(EXIT_FAILURE); } }