]> Kevux Git Server - fll/commitdiff
Bugfix: incorrect read.
authorKevin Day <thekevinday@gmail.com>
Sun, 27 Sep 2020 01:37:54 +0000 (20:37 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 27 Sep 2020 01:37:54 +0000 (20:37 -0500)
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

index 3412eb8c8c50fbdd9585dd561a5336ee19bbfd69..13254ae2cd603e04400f54e68594940f84b075ce 100644 (file)
@@ -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]);
         }