mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
wayland: Avoid unitialized memory reads
I didn't pay attention when I replaced g_new0 with g_newa. Oops.
This commit is contained in:
parent
46b789b0f4
commit
e463e09577
@ -472,6 +472,8 @@ update_direction (GdkWaylandKeymap *keymap)
|
||||
|
||||
keymap->direction = g_renew (PangoDirection, keymap->direction, num_layouts);
|
||||
rtl = g_newa (gint, num_layouts);
|
||||
for (i = 0; i < num_layouts; i++)
|
||||
rtl[i] = 0;
|
||||
|
||||
min_keycode = xkb_keymap_min_keycode (keymap->xkb_keymap);
|
||||
max_keycode = xkb_keymap_max_keycode (keymap->xkb_keymap);
|
||||
|
Loading…
Reference in New Issue
Block a user