From e40057de81b6fcc3d884d72cbbbe54d9177b4de5 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 7 Jun 2026 14:49:09 +0200 Subject: Integrate the config module At this point there is probably a small memory leak, but right now I do not have internet for upgrading my system for Valgrind. --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 243b385..5cb4082 100644 --- a/src/main.c +++ b/src/main.c @@ -1085,7 +1085,7 @@ int main(int argc, char *argv[]) able to only transfer the new files, maybe using rsync. */ }; const int toplevel_command_count = sizeof(toplevel_commands) / sizeof(struct ftag_command); - const char* config_file = NULL; + char* config_file = NULL; const char *optstring = "c:h"; int opt; @@ -1109,8 +1109,10 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } -#error "Resume here, read the config file before doing anything" + ftag_config_init(config_file); parse_args(argc-1, argv+1, toplevel_commands, toplevel_command_count); + + ftag_config_finalize(); return EXIT_SUCCESS; } -- cgit v1.2.3