]> Kevux Git Server - fll/commitdiff
Update: Ensure first if block is initialized to operate.
authorKevin Day <thekevinday@gmail.com>
Sun, 10 Jul 2022 02:50:53 +0000 (21:50 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 10 Jul 2022 02:50:53 +0000 (21:50 -0500)
level_3/fake/c/private-make-operate_block.c

index 6b643a058ba33c12fde8ba2de833789f5c2938a8..ecfb801aa70fa64e217a8ce9604dd63337aa36c6 100644 (file)
@@ -32,6 +32,12 @@ extern "C" {
         state_process->success_block = F_true;
       }
     }
+    else if (state_process->operation == fake_make_operation_type_if_e) {
+
+      // This is the first if-condition, so setup the block.
+      state_process->block = fake_state_process_block_operate_e;
+      state_process->block_result = 0;
+    }
   }
 #endif // _di_fake_make_operate_block_prepare_