Explorar o código

fix uninitialized value

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
ec76d8ee88
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);