summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11/cdx11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11/cdx11.c b/src/x11/cdx11.c
index 8c59d48..705d256 100644
--- a/src/x11/cdx11.c
+++ b/src/x11/cdx11.c
@@ -70,7 +70,8 @@ static void update_colors(cdCtxCanvas *ctxcanvas)
static int find_color(cdCtxCanvas *ctxcanvas, XColor* xc1)
{
int pos = 0, i;
- unsigned long min_dist = ULONG_MAX, this_dist;
+ unsigned long min_dist = ULONG_MAX, /* just a very big value */
+ this_dist;
int dr, dg, db;
XColor* xc2;