summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-28 16:20:59 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-31 09:06:36 +1000
commit3be80bd98357cf362aa9a004d1292e5167d83a17 (patch)
treeb62213c923c5a03674fcb9d37a61a868badd2135 /Xi
parent24716b9254fa7d609792596723a192bb044a7d3f (diff)
Xi: silence compiler warning "type may be used uninitialized"
GrabKey and GrabButton are only called from XI/XI2 code. Set type to -1, just in case. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/exevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 2377d054e..006561985 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -1414,7 +1414,7 @@ GrabButton(ClientPtr client, DeviceIntPtr dev, DeviceIntPtr modifier_device,
WindowPtr pWin, confineTo;
CursorPtr cursor;
GrabPtr grab;
- int rc, type;
+ int rc, type = -1;
Mask access_mode = DixGrabAccess;
rc = CheckGrabValues(client, param);
@@ -1472,7 +1472,7 @@ GrabKey(ClientPtr client, DeviceIntPtr dev, DeviceIntPtr modifier_device,
GrabPtr grab;
KeyClassPtr k = dev->key;
Mask access_mode = DixGrabAccess;
- int rc, type;
+ int rc, type = -1;
rc = CheckGrabValues(client, param);
if (rc != Success)