From 4886f6052092c80e7cbfb9426361809d9713560e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Fri, 13 Jul 2018 22:07:27 +0200 Subject: parse_options: getopt: argument 'l:' requires an argument, so optarg can not be NULL (model_file will fix coverity false positive) Signed-off-by: Toni Uhlig --- src/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 09f5da7..b52c1ac 100644 --- a/src/options.c +++ b/src/options.c @@ -394,8 +394,7 @@ int parse_options(int argc, char **argv) { opts.given_proxy_hostname = strdup(optarg); break; case 'l': - if (optarg) - opts.tcp_listen_port = strtoul(optarg, NULL, 10); + opts.tcp_listen_port = strtoul(optarg, NULL, 10); break; case 'r': opts.restrict_dst_ip = 1; -- cgit v1.2.3