generator: fix maybe-uninitialized warning