cli: Fix the return value for get_profile.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 28m42s

This commit is contained in:
Cory McWilliams 2025-02-21 19:58:01 -05:00
parent 8534e16469
commit ce451b2449

View File

@ -1057,7 +1057,7 @@ static int _tf_command_get_profile(const char* file, int argc, char* argv[])
sqlite3_close(db);
tf_free((void*)profile);
tf_free((void*)default_db_path);
return profile != NULL;
return profile != NULL ? EXIT_SUCCESS : EXIT_FAILURE;
}
static int _tf_command_get_contacts(const char* file, int argc, char* argv[])