summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-14 15:00:15 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-14 15:02:28 +1000
commit1c928d9c138c90512d534e67e96bced247ca3241 (patch)
tree223096b09540a81d7992fcec0b2c7d319e9a8cf4
parentc0404c6db9a8eacc07d140093982b910e54e3f97 (diff)
XRecord: avoid use of uninitialised variables.
Both variables are initialized inside an if condition but later checked for NULL. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/XRecord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XRecord.c b/src/XRecord.c
index 9c6fe87..2d76f5c 100644
--- a/src/XRecord.c
+++ b/src/XRecord.c
@@ -411,9 +411,9 @@ XRecordGetContext(Display *dpy, XRecordContext context,
xRecordGetContextReply rep;
int count, i, rn;
xRecordRange xrange;
- XRecordRange *ranges;
+ XRecordRange *ranges = NULL;
xRecordClientInfo xclient_inf;
- XRecordClientInfo **client_inf, *client_inf_str;
+ XRecordClientInfo **client_inf, *client_inf_str = NULL;
XRecordState *ret;
XRecordCheckExtension (dpy, info, 0);