From 68e0c4988e359e3c9da933946bc703cf8530bdbc Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 12 Sep 2007 20:48:48 +0930 Subject: [PATCH] dix: fix "possible use of uninitialized variable" warning. The device passed through to UnrealizeCursor isn't used anyway, so setting it to NULL is enough. --- dix/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/cursor.c b/dix/cursor.c index 917dc690c..5f48c83f9 100644 --- a/dix/cursor.c +++ b/dix/cursor.c @@ -115,7 +115,7 @@ FreeCursor(pointer value, XID cid) CursorPtr pCurs = (CursorPtr)value; ScreenPtr pscr; - DeviceIntPtr pDev; + DeviceIntPtr pDev = NULL; /* unused anyway */ if ( --pCurs->refcnt != 0) return(Success);