Not initializing variable for looping if unused in loop
Merge pull request #2658 from akshaymohite/optimization-fixes

Not initializing variable for looping if unused in loop