From: Kevin Day Date: Mon, 22 Aug 2022 23:26:43 +0000 (-0500) Subject: The verify option in utf8 returns F_false but the program doesn't return 1. X-Git-Tag: 0.6.1~13 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9f3c2e2ba4b4b8eea4a354544da6866ffb7143b1;p=fll 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. --- 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; }