From d5c42c4951261c401c5f9148ce2d6bb1402ce75b Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sat, 24 Mar 2018 10:13:23 -0600 Subject: Some minor fixups around command line processing --- calibrate_client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calibrate_client.c') diff --git a/calibrate_client.c b/calibrate_client.c index 43ab821..4471acf 100644 --- a/calibrate_client.c +++ b/calibrate_client.c @@ -162,6 +162,9 @@ int main( int argc, char ** argv ) */ ctx = survive_init( argc, argv ); + if (ctx == 0) { // Implies --help or similiar + return -1; + } survive_install_light_fn( ctx, my_light_process ); survive_install_imu_fn( ctx, my_imu_process ); -- cgit v1.2.3