projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ac37e35
)
Plug an extension leak on parse error in parse_for().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 26 Apr 2012 10:18:44 +0000
(12:18 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 26 Apr 2012 13:17:37 +0000
(15:17 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
f128dd5
..
59417dd
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-9527,7
+9527,8
@@
static statement_t *parse_for(void)
warningf(WARN_UNUSED_VALUE, &init->base.source_position, "initialisation of 'for'-statement has no effect");
}
rem_anchor_token(';');
warningf(WARN_UNUSED_VALUE, &init->base.source_position, "initialisation of 'for'-statement has no effect");
}
rem_anchor_token(';');
- expect(';', end_error2);
+ expect(';', end_error3);
+end_error3:;
}
POP_EXTENSION();
}
POP_EXTENSION();