]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/colors: call gettext() only when the argument of --color is invalid
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 28 May 2025 09:37:01 +0000 (11:37 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 29 May 2025 10:04:28 +0000 (12:04 +0200)
commit42b60bce24536266869e512e43ad5be460dad399
tree1610d40cf6139920cf87d50732cb46a09a890f69
parent27dd83b942c949fa123bd8cc00c8fd054666dc2c
lib/colors: call gettext() only when the argument of --color is invalid

Instead of calling gettext() before starting to interpret the argument
of option -L/--color, call it only when it's needed: when the argument
is not recognized.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
disk-utils/cfdisk.c
disk-utils/fdisk.c
disk-utils/sfdisk.c
include/colors.h
lib/colors.c
misc-utils/cal.c
sys-utils/dmesg.c
text-utils/hexdump.c