Explorar o código

fix uninitialized value

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
38f8c43de6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/sched_policies/component_heft.c

+ 2 - 2
src/sched_policies/component_heft.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2013-2014  Université de Bordeaux 1
+ * Copyright (C) 2013-2015  Université de Bordeaux 1
  * Copyright (C) 2013  INRIA
  * Copyright (C) 2013  Simon Archipoff
  *
@@ -194,7 +194,7 @@ static int heft_push_task(struct starpu_sched_component * component, struct star
 static int heft_can_push(struct starpu_sched_component *component)
 {
 	heft_progress(component);
-	int ret, j;
+	int ret = 0, j;
 	for(j=0; j < component->nparents; j++)
 	{
 		if(component->parents[j] == NULL)