aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.c b/test.c
index 8e620bc..ad7aaa0 100644
--- a/test.c
+++ b/test.c
@@ -142,6 +142,9 @@ int main( int argc, char ** argv )
double Start = OGGetAbsoluteTime();
ctx = survive_init( argc, argv );
+ if (ctx == 0) { // Implies --help or similiar
+ return -1;
+ }
survive_install_button_fn(ctx, testprog_button_process);
survive_install_raw_pose_fn(ctx, testprog_raw_pose_process);