dag: Fixed redeclaration of iterator variable.
dag: Fixed redeclaration of iterator variable.

This change is probably not required for some compilers,
but it is quite hard to tell what the code is intended to do.

madsbk/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,bh107/bohrium,bh107/bohrium