From e2eb705935f1cb557cb4af7af4cbc71a92e889e6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 13 Nov 2022 12:47:57 -0800 Subject: Remove unneeded variable initializations Signed-off-by: Alan Coopersmith --- xstdcmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xstdcmap.c b/xstdcmap.c index 3759471..03b6e67 100644 --- a/xstdcmap.c +++ b/xstdcmap.c @@ -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; -- cgit v1.2.3