diff options
author | johnvg | 2010-09-29 14:42:21 +0000 |
---|---|---|
committer | johnvg | 2010-09-29 14:42:21 +0000 |
commit | c23b4416efe5c3a662086f333a5be74201eff463 (patch) | |
tree | a228bb2a261b57f48814a0ea03c59175cb527dbe /backendC | |
parent | fix for 64 bit linux (does not fix 64 bit windows) (diff) |
prevent NULL pointer dereference
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1800 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'backendC')
-rw-r--r-- | backendC/CleanCompilerSources/codegen1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backendC/CleanCompilerSources/codegen1.c b/backendC/CleanCompilerSources/codegen1.c index 1d724b1..c9e53cf 100644 --- a/backendC/CleanCompilerSources/codegen1.c +++ b/backendC/CleanCompilerSources/codegen1.c @@ -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; |