From 0caad87fdb87789f40942e14f81539af84c2a55b Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Wed, 21 Jun 2017 03:01:30 +0200 Subject: misc: remove superfluous null pointer checks for optarg This is only needed for optional arguments. Signed-off-by: Ruediger Meier --- text-utils/hexdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text-utils') diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c index 125734dfe..bf0631654 100644 --- a/text-utils/hexdump.c +++ b/text-utils/hexdump.c @@ -107,7 +107,7 @@ parse_args(int argc, char **argv, struct hexdump *hex) case 'f': addfile(optarg, hex); break; - case 'L': + case 'L': colormode = UL_COLORMODE_AUTO; if (optarg) colormode = colormode_or_err(optarg, -- cgit v1.2.3-55-g7522