summaryrefslogtreecommitdiff
path: root/dix/cursor.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-09-12 20:48:48 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-09-24 12:21:05 +0930
commit68e0c4988e359e3c9da933946bc703cf8530bdbc (patch)
tree911063c994e24a399ef352ff02377a88ff508588 /dix/cursor.c
parentb484451eab261a919fe94c0c0f56877f7571fc9e (diff)
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.
Diffstat (limited to 'dix/cursor.c')
-rw-r--r--dix/cursor.c2
1 files changed, 1 insertions, 1 deletions
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);