diff --git a/bench/rules.c b/bench/rules.c index 3206583..1306dc4 100644 --- a/bench/rules.c +++ b/bench/rules.c @@ -40,7 +40,6 @@ main(int argc, char *argv[]) struct xkb_rule_names rmlvo = { "evdev", "pc105", "us,il", ",", "ctrl:nocaps,grp:menu_toggle", }; - struct xkb_component_names kccgst; struct bench bench; char *elapsed; @@ -52,6 +51,8 @@ main(int argc, char *argv[]) bench_start(&bench); for (i = 0; i < BENCHMARK_ITERATIONS; i++) { + struct xkb_component_names kccgst; + assert(xkb_components_from_rules(ctx, &rmlvo, &kccgst)); free(kccgst.keycodes); free(kccgst.types);