diff options
-rw-r--r-- | xstdcmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -232,10 +232,10 @@ getBestVisual(Atom property, /* specifies the standard colormap */ XVisualInfo *vinfo, /* specifies all visuals of the screen */ int nvisuals) /* specifies number of visuals of screen */ { - XVisualInfo *v1 = NULL, *v2 = NULL; + XVisualInfo *v1, *v2; if (vinfo == NULL) /* unexpected: a screen with no visuals */ - return v1; + return NULL; v1 = getDeepestVisual(DirectColor, vinfo, nvisuals); v2 = getDeepestVisual(PseudoColor, vinfo, nvisuals); if (v2 && (!v1 || (v2->colormap_size >= @@ -277,7 +277,7 @@ doIndividualColormaps(void) { int screen, nvisuals; Status status = -1; - XVisualInfo *vinfo = NULL, *v = NULL, template; + XVisualInfo *vinfo, *v = NULL, template; screen = DefaultScreen(dpy); template.screen = screen; |