Fix uninitialized variables found by coverity CID 26595
Merge pull request #2141 from tklein23/coverity_error_cid_26595

Fix uninitialized variables found by coverity CID 26595