diff options
Diffstat (limited to 'mi')
-rw-r--r-- | mi/micmap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mi/micmap.c b/mi/micmap.c index 45f8e1ed6..2018a093a 100644 --- a/mi/micmap.c +++ b/mi/micmap.c @@ -55,10 +55,11 @@ miInitVisualsProcPtr miInitVisualsProc = miDoInitVisuals; int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps) { - /* By the time we are processing requests, we can guarantee that there - * is always a colormap installed */ - *pmaps = miInstalledMaps[pScreen->myNum]->mid; - return (1); + if (miInstalledMaps[pScreen->myNum]) { + *pmaps = miInstalledMaps[pScreen->myNum]->mid; + return (1); + } + return 0; } void |