diff --git a/src/state.c b/src/state.c index b269e6d6e..d4496977c 100644 --- a/src/state.c +++ b/src/state.c @@ -586,7 +586,7 @@ xkb_state_new(struct xkb_keymap *keymap) { struct xkb_state *ret; - ret = calloc(sizeof(*ret), 1); + ret = calloc(1, sizeof(*ret)); if (!ret) return NULL;