diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-12 11:19:38 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-12 11:19:38 +0200 |
commit | b07df2bfd4468cb06a9f7abdb05759c402f2efb0 (patch) | |
tree | c689d8e498760b8ba430bb691b09c40a11822634 /openbsc/src/osmo-bsc/osmo_bsc_main.c | |
parent | efd266ae120fe0ef3c1bf25ab5e94fbbdef23cce (diff) |
bsc: Do not use strdup on argv parameter
Fixes: Coverity CID 1206578
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_main.c')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index f701089ab..0d6bf2ee1 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -116,7 +116,7 @@ static void handle_options(int argc, char **argv) daemonize = 1; break; case 'c': - config_file = strdup(optarg); + config_file = optarg; break; case 'T': log_set_print_timestamp(osmo_stderr_target, 1); |