Fix assigned but unused variable warning
Merge pull request #326 from timcraft/patch-1

Fix assigned but unused variable warning