Fix a few minor uninitialised-value(s) issues.
Merge pull request #4811 from dmitrijus/valgrindfix

Fix a few minor uninitialised-value(s) issues.