From 15fcda79502c6a9b9813b5ef2574cdacf326c109 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 19 Feb 2026 11:30:57 +0100 Subject: [PATCH] cleanup: Fix uninitialized field in color_distance() `name` of the struct `color_def` was not initialized but is also not needed in this function. --- src/config/color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/color.c b/src/config/color.c index 1912352a..c7a465b9 100644 --- a/src/config/color.c +++ b/src/config/color.c @@ -344,7 +344,7 @@ color_distance(const struct color_def* a, const struct color_def* b) static int find_closest_col(int h, int s, int l) { - struct color_def a = { h, s, l }; + struct color_def a = { h, s, l, NULL }; int min = 0; int dmin = color_distance(&a, &color_names[0]);