summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Nieminen <ext-pauli.nieminen@nokia.com>2010-06-11 17:30:44 +0300
committerPauli Nieminen <ext-pauli.nieminen@nokia.com>2010-07-13 11:26:13 +0300
commit6199f89992e2b6ba5f96833f4f4087b61ca61ac5 (patch)
treebd51f25a6304a70e2eb65a2345e12d3eecc08510
parentd364aaaa47a69789b7acfd54b625caa299780480 (diff)
Fix usage of uninitialized value
In error case length of extra data could be uninitialized. This would result randomly sized request later in function. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--src/XIProperties.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/XIProperties.c b/src/XIProperties.c
index 045cc71..0f77e58 100644
--- a/src/XIProperties.c
+++ b/src/XIProperties.c
@@ -150,6 +150,7 @@ XIChangeProperty(Display* dpy, int deviceid, Atom property, Atom type,
default:
/* BadValue will be generated */ ;
+ len = 0;
}
/* we use data instead of Data32 and friends to avoid Xlib's braindead