From ceb5caa40c2f58d69c65646f5ed57e8c3672060b Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 2 May 2021 21:51:54 -0500 Subject: [PATCH] Regression: FSS Basic read --select is always returning empty sting or 0. After changing the code structure, the check to see if the select number is non-zero was lost. As a result the code is always operating as if the select number is non-zero. When the select number is zero, all existing operations should continue. --- level_3/fss_basic_read/c/private-fss_basic_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/fss_basic_read/c/private-fss_basic_read.c b/level_3/fss_basic_read/c/private-fss_basic_read.c index cc698f0..951605a 100644 --- a/level_3/fss_basic_read/c/private-fss_basic_read.c +++ b/level_3/fss_basic_read/c/private-fss_basic_read.c @@ -303,7 +303,7 @@ extern "C" { if (F_status_is_error(status)) return status; // This standard does not support multiple content groups. - if (data->option & fss_basic_read_data_option_select) { + if ((data->option & fss_basic_read_data_option_select) && data->select) { if (main->parameters[fss_basic_read_parameter_total].result == f_console_result_found) { fss_basic_read_print_zero(main); } -- 1.8.3.1