fix build error for uninitialized variables
Merge pull request #5258 from dvolk/fixbuild0

fix build error for uninitialized variables