From f17c929fd601978fe54b04981e98e274f4b0f1e6 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 31 Aug 2024 20:28:31 -0500 Subject: [PATCH] Bugfix: Incorrect handling of column counts with empty data for FSS Embedded List Read. --- level_3/fss_embedded_list_read/c/private-read.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/level_3/fss_embedded_list_read/c/private-read.c b/level_3/fss_embedded_list_read/c/private-read.c index 558a2bf..97cd259 100644 --- a/level_3/fss_embedded_list_read/c/private-read.c +++ b/level_3/fss_embedded_list_read/c/private-read.c @@ -536,9 +536,11 @@ extern "C" { if (skip[i]) continue; - fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_1_s, f_string_eol_s); + if (items->array[i].content.used && items->array[i].content.array[0].start <= items->array[i].content.array[0].stop || data->main->parameters.array[fss_embedded_list_read_parameter_empty_e].result == f_console_result_found_e) { + fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_1_s, f_string_eol_s); - return F_none; + return F_none; + } } // for } @@ -707,7 +709,7 @@ extern "C" { if (skip[i]) continue; - if (items->array[i].content.used || data->main->parameters.array[fss_embedded_list_read_parameter_empty_e].result == f_console_result_found_e) { + if (items->array[i].content.used && items->array[i].content.array[0].start <= items->array[i].content.array[0].stop || data->main->parameters.array[fss_embedded_list_read_parameter_empty_e].result == f_console_result_found_e) { fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_1_s, f_string_eol_s); return F_none; -- 1.8.3.1