projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbcf3ab
)
BugFix: expression may be NULL in count_decls_in_expr()
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 5 Dec 2007 16:00:21 +0000
(16:00 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 5 Dec 2007 16:00:21 +0000
(16:00 +0000)
[r18609]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
2758bf0
..
ec6afd7
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-3111,7
+3111,7
@@
static int count_local_declarations(const declaration_t * decl,
}
static int count_decls_in_expr(const expression_t *expr) {
- if (expr->base.type == EXPR_STATEMENT)
+ if (expr
!= NULL && expr
->base.type == EXPR_STATEMENT)
return count_decls_in_stmts(expr->statement.statement);
return 0;
}