From dd1fbee754f0f73652cde821166d34fac989d7fa Mon Sep 17 00:00:00 2001 From: Denis Date: Sun, 26 Nov 2023 21:25:42 +0100 Subject: [PATCH] solve SIGSEGV on file not found --- settings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settings.c b/settings.c index f1b7a5d..d209b9d 100644 --- a/settings.c +++ b/settings.c @@ -35,7 +35,8 @@ int fill_config(controller_settings_t *const conf, const char* file) { fprintf(stderr, "ff_gain (int) configuration not found. Default value will be used.\n"); } -fill_config_err: config_destroy(&cfg); + +fill_config_err: return res; } \ No newline at end of file