]> Kevux Git Server - fll/commitdiff
Bugfix: trimming in FSS extended write does not always work.
authorKevin Day <thekevinday@gmail.com>
Thu, 15 Oct 2020 04:29:21 +0000 (23:29 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 15 Oct 2020 04:29:21 +0000 (23:29 -0500)
A boolean is used to designate when the Object has no space at the end.
If this boolean is FALSE, then a space is added before the '{'.
The problem is that the addition of this space happens after trimming.

If trimming is performed, just lie and set the boolean to TRUE to prevent the addition of an (unwanted) space.

level_1/fl_fss/c/fss_extended_list.c

index a2d0798..b091d9a 100644 (file)
@@ -963,6 +963,9 @@ extern "C" {
           destination->used = used_start;
           return status;
         }
+
+        // prevent a space from being added post-trimming.
+        ends_on_space = F_true;
       }
 
       status = private_fl_fss_destination_increase_by(3, destination);