Initialize variables to silence garbage return warning from scan-build.
Remove pointless initializations.
Merge pull request #893 from rohitnirmal/scan-build-fixes

Scan build fixes