aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-07-13 22:07:27 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-07-13 22:07:27 +0200
commit4886f6052092c80e7cbfb9426361809d9713560e (patch)
treebc8e1bfa188c3f4d91d5c54201701ecfd676d169
parent02a5b08e69ae8e1e1bd217d04bdea5dec2b82738 (diff)
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 <matzeton@googlemail.com>
-rw-r--r--src/options.c3
1 files changed, 1 insertions, 2 deletions
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;