diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-06-07 14:49:09 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-06-07 14:49:09 +0200 |
| commit | e40057de81b6fcc3d884d72cbbbe54d9177b4de5 (patch) | |
| tree | 9458c29bbce523db1b59dc5675349c454a16b81f | |
| parent | f428c8feba4cad76450cc3fd3e717ba88c8421ea (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.
| -rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |
