diff --git a/tasks/types.hh b/tasks/types.hh index 090ca740b7..bd9be78f09 100644 --- a/tasks/types.hh +++ b/tasks/types.hh @@ -18,7 +18,7 @@ struct task_info { task_id id; unsigned shard; - task_info() noexcept : id(task_id::create_null_id()) {} + task_info() noexcept : id(task_id::create_null_id()), shard(0) {} task_info(task_id id, unsigned parent_shard) noexcept : id(id), shard(parent_shard) {} operator bool() const noexcept {