wayland: Avoid unitialized memory reads

I didn't pay attention when I replaced g_new0 with g_newa. Oops.
This commit is contained in:
Matthias Clasen 2016-05-12 11:37:13 -04:00
parent 46b789b0f4
commit e463e09577

View File

@ -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);