mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
module/xkb: initialize layouts to zero
Fixes a crash when content() is called before we've initialized the layouts.
This commit is contained in:
parent
47f5c5d655
commit
6db41b7803
1 changed files with 3 additions and 0 deletions
|
@ -449,6 +449,9 @@ module_xkb(struct particle *label)
|
|||
{
|
||||
struct private *m = malloc(sizeof(*m));
|
||||
m->label = label;
|
||||
m->current = 0;
|
||||
m->layouts.count = 0;
|
||||
m->layouts.layouts = NULL;
|
||||
|
||||
struct module *mod = malloc(sizeof(*mod));
|
||||
mod->bar = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue