diff --git a/randr/rrscreen.c b/randr/rrscreen.c index d0ca91e0e..b5e2090d9 100644 --- a/randr/rrscreen.c +++ b/randr/rrscreen.c @@ -41,6 +41,9 @@ RREditConnectionInfo(ScreenPtr pScreen) int screen = 0; int d; + if (ConnectionInfo == NULL) + return; + connSetup = (xConnSetup *) ConnectionInfo; vendor = (char *) connSetup + sizeof(xConnSetup); formats = (xPixmapFormat *) ((char *) vendor +