fixed the segfault! hand-initialized HParser needed PB_MIN set.

This commit is contained in:
Meredith L. Patterson 2013-11-19 19:00:58 -06:00
parent 62af9f6222
commit 10c8b0bd22
4 changed files with 13 additions and 9 deletions

View file

@ -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;
}