]> Kevux Git Server - fll/commitdiff
Bugfix: Return result lost in Featureless Make for f_string_dynamic_append_nulless...
authorKevin Day <kevin@kevux.org>
Sun, 5 Mar 2023 01:29:45 +0000 (19:29 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 5 Mar 2023 01:29:45 +0000 (19:29 -0600)
There is a second call to f_string_dynamic_append_nulless() without checking the return status.
This effectively hides any potential error.

level_3/fake/c/private-build-load.c

index 91a73202df17d6820a6a40b0073f35c9cbb7919f..9172b8e2a6c37590a0bb477af2e619f627f68f8f 100644 (file)
@@ -1549,7 +1549,9 @@ extern "C" {
 
       if (F_status_is_error_not(*status) && data->process.used) {
         *status = f_string_dynamic_append_nulless(data->process, values[i]);
+      }
 
+      if (F_status_is_error_not(*status)) {
         *status = f_string_dynamic_append_nulless(fake_build_stage_separate_s, values[i]);
       }