diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-01 13:54:26 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:24 -0700 |
commit | ec8889740d9077f06c38bcc7232c8d9fd2bbb6c4 (patch) | |
tree | afc7ad586e570a927736cc11b2f5b6243c3766fc /expand.c | |
parent | Allow parsing of nested functions. (diff) | |
download | sparse-ec8889740d9077f06c38bcc7232c8d9fd2bbb6c4.tar.gz sparse-ec8889740d9077f06c38bcc7232c8d9fd2bbb6c4.tar.bz2 sparse-ec8889740d9077f06c38bcc7232c8d9fd2bbb6c4.zip |
Be more graceful about missing types and malformed expressions.
Diffstat (limited to 'expand.c')
-rw-r--r-- | expand.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -864,7 +864,7 @@ static int expand_expression(struct expression *expr) struct statement *stmt = expr->statement; int cost = expand_statement(stmt); - if (stmt->type == STMT_EXPRESSION) + if (stmt->type == STMT_EXPRESSION && stmt->expression) *expr = *stmt->expression; return cost; } |