transport-helper: avoid var decl in for () loop control