]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/color-names: Fix color name canonicalization
authorKarel Zak <kzak@redhat.com>
Tue, 15 Jul 2025 13:35:05 +0000 (15:35 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Jul 2025 13:35:05 +0000 (15:35 +0200)
commit44ebe68c24da0bcf5aa1f48017d47d2d8995b0ed
tree9284b2479a88bdfd6bdc504be1503f47615acb46
parented6bc65cac382d58e5e3881149a9cbc7486cca03
lib/color-names: Fix color name canonicalization

Return NULL rather than a random string if it cannot be translated to
the color sequence.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/color-names.c