projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d91818
)
parser: Remove redundant test.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 12 Dec 2012 15:37:42 +0000
(16:37 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 12 Dec 2012 15:57:15 +0000
(16:57 +0100)
parse_expression() never returns null.
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
70d4b5e
..
4eb6f25
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-6428,9
+6428,6
@@
static designator_t *parse_designator(void)
designator->array_index = parse_expression();
rem_anchor_token(']');
expect(']');
- if (designator->array_index == NULL) {
- return NULL;
- }
last_designator->next = designator;
last_designator = designator;