fix uninitialized locals
Merge pull request #2207 from WalterBright/initialize_locals

fix uninitialized locals