fix(ui-ext): log and clear error in ui_comp_event (#21147)

* fix: log and clear error in ui_comp_event

* fix: handling error in each map_foreach_value iteration

* fix: handling error decl in for_each loop

* fix: updating initerr to const, removing initerr free-ing

* fix: using ERROR_SET for error check

* fix: wrapping ERROR_INIT in parens to allow for including inside macro
This commit is contained in:
Andrew Willette
2022-11-30 14:32:57 -06:00
committed by GitHub
parent ef5ab2bf76
commit 282dda643a
3 changed files with 7 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ void unpacker_init(Unpacker *p)
mpack_parser_init(&p->parser, 0);
p->parser.data.p = p;
mpack_tokbuf_init(&p->reader);
p->unpack_error = (Error)ERROR_INIT;
p->unpack_error = ERROR_INIT;
p->arena = (Arena)ARENA_EMPTY;
}