Преглед изворни кода

hypervisor: make sure to correctly initialize the policy in app_driven_test.c

Samuel Pitoiset пре 9 година
родитељ
комит
fc8f7e8f3d
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      sc_hypervisor/examples/app_driven_test/app_driven_test.c

+ 2 - 1
sc_hypervisor/examples/app_driven_test/app_driven_test.c

@@ -129,7 +129,8 @@ int main()
 	unsigned sched_ctx2 = starpu_sched_ctx_create(ressources2, nres2, "sched_ctx2", STARPU_SCHED_CTX_POLICY_NAME, "dmda", 0);
 
 	/* initialize the hypervisor */
-	struct sc_hypervisor_policy policy;
+	struct sc_hypervisor_policy policy = {};
+
 	policy.custom = 0;
 	/* indicate which strategy to use
 	   in this particular case we use app_driven which allows the user to resize