From: Kevin Day Date: Fri, 15 Jan 2021 04:18:14 +0000 (-0600) Subject: Bugfix: regression in how an optional variable is handled. X-Git-Tag: 0.5.3~121 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=706a9b9547998583521bc6ef664a31b26fe8e3f7;p=fll Bugfix: regression in how an optional variable is handled. --- diff --git a/level_2/fll_fss/c/fss.c b/level_2/fll_fss/c/fss.c index 3700499..8da5599 100644 --- a/level_2/fll_fss/c/fss.c +++ b/level_2/fll_fss/c/fss.c @@ -335,8 +335,10 @@ extern "C" { status = f_string_map_multis_increase(values[j]); if (F_status_is_error(status)) return status; - f_macro_array_lengths_t_increase(status, (*indexs[j])); - if (F_status_is_error(status)) return status; + if (indexs) { + f_macro_array_lengths_t_increase(status, (*indexs[j])); + if (F_status_is_error(status)) return status; + } map_multi = &values[j]->array[values[j]->used]; @@ -405,8 +407,10 @@ extern "C" { status = f_string_maps_increase(values[j]); if (F_status_is_error(status)) return status; - f_macro_array_lengths_t_increase(status, (*indexs[j])); - if (F_status_is_error(status)) return status; + if (indexs) { + f_macro_array_lengths_t_increase(status, (*indexs[j])); + if (F_status_is_error(status)) return status; + } map = &values[j]->array[values[j]->used]; @@ -505,8 +509,10 @@ extern "C" { status = f_string_map_multis_increase(values[j]); if (F_status_is_error(status)) return status; - f_macro_array_lengths_t_increase(status, (*indexs[j])); - if (F_status_is_error(status)) return status; + if (indexs) { + f_macro_array_lengths_t_increase(status, (*indexs[j])); + if (F_status_is_error(status)) return status; + } map_multi = &values[j]->array[values[j]->used]; map_multi->name.string = name.string; @@ -615,8 +621,10 @@ extern "C" { status = f_string_maps_increase(values[j]); if (F_status_is_error(status)) return status; - f_macro_array_lengths_t_increase(status, (*indexs[j])); - if (F_status_is_error(status)) return status; + if (indexs) { + f_macro_array_lengths_t_increase(status, (*indexs[j])); + if (F_status_is_error(status)) return status; + } map = &values[j]->array[values[j]->used]; @@ -736,8 +744,10 @@ extern "C" { status = f_string_dynamics_increase(values[j]); if (F_status_is_error(status)) return status; - f_macro_array_lengths_t_increase(status, (*indexs[j])); - if (F_status_is_error(status)) return status; + if (indexs) { + f_macro_array_lengths_t_increase(status, (*indexs[j])); + if (F_status_is_error(status)) return status; + } for (k = 0; k < contents.array[i].used; k++) {