Browse Source

fix uninitialized value

Samuel Thibault 8 years ago
parent
commit
ec76d8ee88
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/sched_ctx/parallel_code.c

+ 1 - 0
examples/sched_ctx/parallel_code.c

@@ -79,6 +79,7 @@ int main(int argc, char **argv)
 #else
 	nprocs1 = 1;
 	procs1 = (int*)malloc(nprocs1*sizeof(int));
+	procs1[0] = 0;
 #endif
 
 	unsigned sched_ctx1 = starpu_sched_ctx_create(procs1, nprocs1, "ctx1", STARPU_SCHED_CTX_POLICY_NAME, "dmda", 0);