Typo: set i to -1 before goto. PR#3302 (Imported from upstream's 646886682373e76dee233f7b918dec0c83e180fc)