Fix transfer of control bypasses initialization of variables