cleanup: Fix uninitialized field in color_distance()

`name` of the struct `color_def` was not initialized but is also not
needed in this function.
This commit is contained in:
Michael Vetter
2026-02-19 11:30:57 +01:00
parent 12a181b5d5
commit 15fcda7950

View File

@@ -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]);