Fix uninitialized variables found by coverity CID 26595