Fixing infinite while-loop silliness in GetPot.
Declare for loop variables locally.