Avoid read of uninitialized data

The chances of this causing any problems are negligible.

Also fix code formatting.
Fix inconsistency in documentation

Thanks to @AbrahamJewowich for reporting.