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 defined (TRANSFORM_PATTERNS_BEFORE_STRICTNESS_ANALYSIS)
if (!(arg->arg_next->arg_node->node_kind==DefaultNode))
if (!(arg->arg_next!=NULL && arg->arg_next->arg_node->node_kind==DefaultNode))
#endif
GenJmp (&case_label);
matches_always=1;
......
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