From a2fc38bd9cad6d4ec72e7b228f663f06f74bc5f1 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 26 Sep 2020 20:37:54 -0500 Subject: [PATCH] Bugfix: incorrect read. The at variable is already being checked to be out of range. Do not attempt to then check the variable in the array. --- level_3/fss_extended_list_read/c/private-fss_extended_list_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c b/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c index 3412eb8..13254ae 100644 --- a/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c +++ b/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c @@ -380,7 +380,7 @@ extern "C" { if (depth_setting.index_at > 0) { if (depth_setting.value_at >= items->used) { - if (names[depth_setting.value_at] && data->parameters[fss_extended_list_read_parameter_total].result == f_console_result_found) { + if (data->parameters[fss_extended_list_read_parameter_total].result == f_console_result_found) { fprintf(f_type_output, "0%c", f_string_eol[0]); } -- 1.8.3.1