ソースを参照

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