aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-06-07 14:49:09 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-06-07 14:49:09 +0200
commite40057de81b6fcc3d884d72cbbbe54d9177b4de5 (patch)
tree9458c29bbce523db1b59dc5675349c454a16b81f /src
parentf428c8feba4cad76450cc3fd3e717ba88c8421ea (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files 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;
}