charmxi: Explicitly initialize variables that affect control flow