aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jalv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jalv.c b/src/jalv.c
index c1da3c5..ca3d7bf 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -1140,8 +1140,10 @@ main(int argc, char** argv)
jalv_apply_state(&jalv, state);
}
- for (char** c = jalv.opts.controls; *c; ++c) {
- jalv_apply_control_arg(&jalv, *c);
+ if (jalv.opts.controls) {
+ for (char** c = jalv.opts.controls; *c; ++c) {
+ jalv_apply_control_arg(&jalv, *c);
+ }
}
/* Set Jack callbacks */