From 9f3c2e2ba4b4b8eea4a354544da6866ffb7143b1 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 22 Aug 2022 18:26:43 -0500 Subject: [PATCH] The verify option in utf8 returns F_false but the program doesn't return 1. When the --verify parameter is passed the result is not properly returned. When F_false is returned, the the verify failed so return 1. The F_false should not be returned in any other cases. --- level_3/utf8/c/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/level_3/utf8/c/main.c b/level_3/utf8/c/main.c index 0dc25a5..6ce2fff 100644 --- a/level_3/utf8/c/main.c +++ b/level_3/utf8/c/main.c @@ -21,7 +21,5 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { fll_program_standard_setdown(&data.signal); - if (F_status_is_error(status)) return 1; - - return 0; + return (F_status_is_error(status) || status == F_false) ? 1 : 0; } -- 1.8.3.1