Fixing variable shadowing warning.

Refs #000.
Merge pull request #3134 from jwpeterson/fix_shadow

Fixing variable shadowing warning.