From 1c928d9c138c90512d534e67e96bced247ca3241 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Aug 2009 15:00:15 +1000 Subject: XRecord: avoid use of uninitialised variables. Both variables are initialized inside an if condition but later checked for NULL. Signed-off-by: Peter Hutterer --- src/XRecord.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.1