wrap only non-null rdata parsers with h_end_p
This commit is contained in:
parent
8dea41c237
commit
d0d115f206
1 changed files with 4 additions and 2 deletions
|
|
@ -181,8 +181,10 @@ const HParser* init_rdata(uint16_t type) {
|
||||||
|
|
||||||
// All parsers must consume their input exactly.
|
// All parsers must consume their input exactly.
|
||||||
for(uint16_t i; i<sizeof(parsers); i++) {
|
for(uint16_t i; i<sizeof(parsers); i++) {
|
||||||
parsers[i] = h_action(h_sequence(parsers[i], h_end_p(), NULL),
|
if(parsers[i]) {
|
||||||
act_index0);
|
parsers[i] = h_action(h_sequence(parsers[i], h_end_p(), NULL),
|
||||||
|
act_index0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inited = 1;
|
inited = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue