io: fix maybe-uninitialized warning in test (-O2)