]> Kevux Git Server - fll/commitdiff
Regression: FSS Basic read --select is always returning empty sting or 0.
authorKevin Day <thekevinday@gmail.com>
Mon, 3 May 2021 02:51:54 +0000 (21:51 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 3 May 2021 02:51:54 +0000 (21:51 -0500)
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

index cc698f0fca07d416f7678600ee1e8bfbd3e847fd..951605ad445a237faa137f7d94eff98d2d033218 100644 (file)
@@ -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);
       }