Skip to content

Commit

Permalink
Don't check config if app failed
Browse files Browse the repository at this point in the history
Removes config warnings when initialization is not complete.

Signed-off-by: Artem Senichev <artemsen@gmail.com>
  • Loading branch information
artemsen committed Sep 28, 2024
1 parent b0426a3 commit 162134e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ int main(int argc, char* argv[])
}

rc = app_init(cfg, (const char**)&argv[argn], argc - argn);
config_check(cfg);
if (rc) {
config_check(cfg);
}
config_free(cfg);
if (rc) {
rc = app_run();
Expand Down

0 comments on commit 162134e

Please sign in to comment.