From 8d1afd027bc1e4aea3da626c9f23cb8797823b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 27 Jan 2019 22:05:00 +0100 Subject: [PATCH] module/xkb: initialize indicators This fixes a bug where we tried to free invalid indicator names. --- modules/xkb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/xkb.c b/modules/xkb.c index 299f203..04eb74a 100644 --- a/modules/xkb.c +++ b/modules/xkb.c @@ -647,6 +647,8 @@ xkb_new(struct particle *label) m->current = 0; m->layouts.count = 0; m->layouts.layouts = NULL; + m->indicators.count = 0; + m->indicators.names = NULL; m->caps_lock = false; m->num_lock = false; m->scroll_lock = false;