Skip to content

Commit

Permalink
fix: correctly set xkb_rules to allocated struct on init (#38)
Browse files Browse the repository at this point in the history
Previously, the globals xkb_rules variable would
not be used, since it was set to NULL initally,
and was never updated via the config setter cb.
  • Loading branch information
Frewacom committed Oct 20, 2023
1 parent a8c6be4 commit 424cfa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dscm/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ setter_xkb_rules(void *cvar, SCM value)
if (xkb->options) free((char*)xkb->options);
} else {
xkb = calloc(1, sizeof(struct xkb_rule_names));
(*((struct xkb_rule_names**)cvar)) = xkb;
}

xkb->rules = dscm_assoc_ref_string(value, "rules");
Expand Down

0 comments on commit 424cfa6

Please sign in to comment.