From: Kevin Day Date: Thu, 1 Sep 2022 02:45:37 +0000 (-0500) Subject: Update: f_memory_structure_increase_by() shouldn't do anything if amount is 0. X-Git-Tag: 0.6.1~9 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=98fe2697d6dc90266e4eb51901b4c04967836d10;p=fll Update: f_memory_structure_increase_by() shouldn't do anything if amount is 0. --- diff --git a/level_0/f_memory/c/memory/structure.c b/level_0/f_memory/c/memory/structure.c index 22dc263..cc9d577 100644 --- a/level_0/f_memory/c/memory/structure.c +++ b/level_0/f_memory/c/memory/structure.c @@ -89,7 +89,7 @@ extern "C" { if (!size) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (*used + amount > *size) { + if (amount && *used + amount > *size) { if (*used + amount > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); }