Fix bug with reading from uninitialized variable found by VC++'s /analyze.