From 9bf6ccb34caf39a17973570a7ba056b5579f4587 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Sep 2018 13:46:38 +0200 Subject: Remove unnecessary preallocation --- src/jalv_console.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/jalv_console.c b/src/jalv_console.c index e12b050..07e97c6 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -69,9 +69,6 @@ jalv_ui_port_event(ZIX_UNUSED Jalv* jalv, int jalv_init(int* argc, char*** argv, JalvOptions* opts) { - opts->controls = (char**)malloc(sizeof(char*)); - opts->controls[0] = NULL; - int n_controls = 0; int a = 1; for (; a < *argc && (*argv)[a][0] == '-'; ++a) { -- cgit v1.2.1