Fixing unused variable found by coverity CID 26592
Merge pull request #2142 from tklein23/coverity_error_cid_26592

Fixing unused variable found by coverity CID 26592