io: fix potentially uninitialized variables.

Resolves a couple of compiler warnings from clang about potentially
uninitialized variables.