From 7942947dd9f3a3b6d6df205269cd8fb7866d557b Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 10 Jan 2026 16:44:03 -0600 Subject: [PATCH] Bugfix: Non-debug mode error printing prints incorrectly. A character is incorrectly printed when debug mode is disabled. If the first character in the debug string is NULL, then do not print the wrapping parenthesis. --- level_2/fll_error/c/private-error.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/level_2/fll_error/c/private-error.c b/level_2/fll_error/c/private-error.c index 59de36b93..4038b3b8a 100644 --- a/level_2/fll_error/c/private-error.c +++ b/level_2/fll_error/c/private-error.c @@ -352,14 +352,11 @@ extern "C" { #if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) void private_fll_error_print_debug(fl_print_t * const print, const f_string_t debug) { - if (debug) { + if (debug && *debug) { fl_print_format(macro_fll_error_s(019_debug_open), print->to, print->context); fl_print_format(f_string_format_S_single_s.string, print->to, print->notable, debug, print->notable); fl_print_format(macro_fll_error_s(020_debug_close), print->to, print->context); } - else { - fl_print_format(f_string_format_bracket_open_s.string, print->to, print->context); - } } #endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) -- 2.47.3