浏览代码

Initialize variable to avoid having a conditional jump that depends on an
unitialized value.

Cédric Augonnet 14 年之前
父节点
当前提交
1ebcacabf3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/drivers/driver_common/driver_common.c

+ 1 - 1
src/drivers/driver_common/driver_common.c

@@ -32,7 +32,7 @@ void _starpu_driver_update_job_feedback(starpu_job_t j, struct starpu_worker_s *
 	double measured;
 	int workerid = worker_args->workerid;
 	struct starpu_codelet_t *cl = j->task->cl;
-	int calibrate_model;
+	int calibrate_model = 0;
 	int profiling = starpu_profiling_status_get();
 	int updated = 0;