Commit 7c92ca4d authored by John van Groningen's avatar John van Groningen
Browse files

prevent NULL pointer dereference

parent b4877fec
......@@ -3492,7 +3492,7 @@ static int generate_code_for_switch_node (NodeP node,int asp,int bsp,struct esc
return need_next_alternative;
if (!(arg->arg_next->arg_node->node_kind==DefaultNode))
if (!(arg->arg_next!=NULL && arg->arg_next->arg_node->node_kind==DefaultNode))
GenJmp (&case_label);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment