summaryrefslogtreecommitdiff
path: root/xstdcmap.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-13 12:47:57 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-13 14:17:11 -0800
commite2eb705935f1cb557cb4af7af4cbc71a92e889e6 (patch)
tree8d0230b2c3e6af0f3cf3fc9765662d36d1e22b88 /xstdcmap.c
parent0d07746403f9fbdb9e29764e685b4b7552d4115d (diff)
Remove unneeded variable initializations
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xstdcmap.c')
-rw-r--r--xstdcmap.c6
1 files 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;