fixed the segfault! hand-initialized HParser needed PB_MIN set.
This commit is contained in:
parent
62af9f6222
commit
10c8b0bd22
4 changed files with 13 additions and 9 deletions
|
|
@ -143,6 +143,8 @@ HParser* h_choice__ma(HAllocator* mm__, void *args[]) {
|
|||
|
||||
s->len = len;
|
||||
HParser *ret = h_new(HParser, 1);
|
||||
ret->vtable = &choice_vt; ret->env = (void*)s;
|
||||
ret->vtable = &choice_vt;
|
||||
ret->env = (void*)s;
|
||||
ret->backend = PB_MIN;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue