summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-11-04 21:47:55 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-11-08 15:29:16 +0200
commitd585b4189aff8d7952847f75b19b4f092ab3b88b (patch)
treeb2feaf7f392c70e5b29f444641699fafcd844e34 /xkb
parentb6d7b537ed8975363ad0f7c4180a62822358e418 (diff)
xkb: fix uninitialised warning
Fix uninitialised warning with memset(); we never actually use it uninitialised, but gcc doesn't know that.
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbActions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index 0cbf8d007..e0bf89c7b 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -868,6 +868,10 @@ XkbStateRec old;
unsigned mods,mask,oldCoreState = 0,oldCorePrevState = 0;
xkbDeviceInfoPtr xkbPrivPtr = XKBDEVICEINFO(xkbi->device);
+ /* never actually used uninitialised, but gcc isn't smart enough
+ * to work that out. */
+ memset(&old, 0, sizeof(old));
+
if ((filter->keycode!=0)&&(filter->keycode!=keycode))
return 1;