From 0e870a1e54b6bc21a1b820297c0dd3c5fb233754 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 22 Nov 2024 19:54:07 -0600 Subject: [PATCH] Bugfix: Do not treat out of range depth as an error. The FSS Embedded List Read should not treat out of range depth as an error. This simply should return no results. --- level_3/fss_read/c/embedded_list/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/level_3/fss_read/c/embedded_list/process.c b/level_3/fss_read/c/embedded_list/process.c index 5ec425f..fe2213c 100644 --- a/level_3/fss_read/c/embedded_list/process.c +++ b/level_3/fss_read/c/embedded_list/process.c @@ -26,8 +26,6 @@ extern "C" { return; } - // @todo this now needs to handle this case: main->setting.feature & fss_read_feature_flag_depth_multiple_d and this case main->setting.flag & fss_read_main_flag_select_d. - if (main->setting.buffer.used) { main->setting.range.start = 0; main->setting.range.stop = main->setting.buffer.used; @@ -134,8 +132,9 @@ extern "C" { // Pre-process depths to confirm if any requested i is out of range. for (; i < main->setting.depths.used; ++i) { + // Out of range is not an error, there is simply nothing to print. if (main->setting.depths.array[i].depth >= main->setting.nest.used) { - main->setting.state.status = F_status_set_error(F_parameter); + main->setting.state.status = F_okay; return; } -- 1.8.3.1