Fix uninitialised variable error

goto jumping past initialisation