From 282a9e073ea985cbf0d0f3f296d593af1426bad5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 3 Nov 2006 13:46:09 -0800 Subject: [PATCH] Don't memset the modes pointer on init, which was dereferencing NULL. --- src/i830_randr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/i830_randr.c b/src/i830_randr.c index 59ebcc08..e4ae9d04 100644 --- a/src/i830_randr.c +++ b/src/i830_randr.c @@ -874,7 +874,6 @@ I830RandRInit12 (ScreenPtr pScreen) rp->rrCrtcSet = I830RandRCrtcSet; rp->rrCrtcSetGamma = I830RandRCrtcSetGamma; rp->rrSetConfig = NULL; - memset (rp->modes, '\0', sizeof (rp->modes)); pScrn->PointerMoved = I830RandRPointerMoved; return TRUE; }