[PATCH] Avoid segfault when code is present after a goto statement