[PATCH 1/2] Xi: set len to zero to avoid confusing clang.
Peter Hutterer
peter.hutterer at who-t.net
Sun Dec 6 22:54:01 PST 2009
Reported-by: Tomas Carnecky <tom at dbservice.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Xi/xiquerydevice.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Xi/xiquerydevice.c b/Xi/xiquerydevice.c
index 435868d..09087fb 100644
--- a/Xi/xiquerydevice.c
+++ b/Xi/xiquerydevice.c
@@ -428,7 +428,7 @@ ListDeviceClasses(ClientPtr client, DeviceIntPtr dev,
char *any, uint16_t *nclasses)
{
int total_len = 0;
- int len;
+ int len = 0;
int i;
int rc;
--
1.6.5.2
More information about the xorg-devel
mailing list