diff options
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/hubbub/parser.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bindings/hubbub/parser.c b/bindings/hubbub/parser.c index d1e69c3..65c3449 100644 --- a/bindings/hubbub/parser.c +++ b/bindings/hubbub/parser.c @@ -150,12 +150,11 @@ dom_hubbub_parser *dom_hubbub_parser_create( parser->complete = false; if (msg == NULL) { - parser->msg = dom_hubbub_parser_default_msg; - parser->mctx = NULL; - } else { - parser->msg = msg; - parser->mctx = mctx; + msg = dom_hubbub_parser_default_msg; + mctx = NULL; } + parser->msg = msg; + parser->mctx = mctx; error = hubbub_parser_create(enc, fix_enc, dom_hubbub_alloc, NULL, &parser->parser); |