From ce451b2449c2f1aafc95fd6094c2381653ccd13a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 21 Feb 2025 19:58:01 -0500 Subject: [PATCH] cli: Fix the return value for get_profile. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index ca580fbf3..aacae3f07 100644 --- a/src/main.c +++ b/src/main.c @@ -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[])