diff --git a/src/scheduler.c b/src/scheduler.c
index 80d9d744417d856e2af7bea3d9e00d44d3be0634..a4dd8292510abdd8124e3fdba597147866d74c45 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -440,6 +440,7 @@ struct task *scheduler_addtask ( struct scheduler *s , int type , int subtype ,
     t->skip = 0;
     t->tight = tight;
     t->implicit = 0;
+    t->weight = 0;
     t->nr_unlock_tasks = 0;
     
     /* Init the lock. */