diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-10-11 15:38:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-10-20 08:01:31 +1000 |
commit | ca21a266224b6eff4fd817c2082d2e144f1ea58c (patch) | |
tree | 05f39ca668ab69739a6ef59f306edf61c755fd7e /xkb/xkb.c | |
parent | 5aff712a8d2eb9f965ecbb93216cc0bcdc327ae6 (diff) |
xkb: init mapWidth and symsPerKey arrays to 0.
Helps debugging greatly, random 8 or 16 bit values can sometimes look like
valid values, causing much excitement on the client front.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkb/xkb.c')
-rw-r--r-- | xkb/xkb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2343,8 +2343,8 @@ _XkbSetMapChecks(ClientPtr client, DeviceIntPtr dev, xkbSetMapReq *req, char* va XkbDescPtr xkb; int error; int nTypes = 0, nActions; - CARD8 mapWidths[XkbMaxLegalKeyCode + 1]; - CARD16 symsPerKey[XkbMaxLegalKeyCode + 1]; + CARD8 mapWidths[XkbMaxLegalKeyCode + 1] = {0}; + CARD16 symsPerKey[XkbMaxLegalKeyCode + 1] = {0}; xkbi= dev->key->xkbInfo; xkb = xkbi->desc; |