commit | e00ed295c2cb65fa33f4e6d60885b41629084d89 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Thu Jun 12 11:19:38 2014 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Thu Jun 12 11:19:38 2014 +0200 |
tree | c689d8e498760b8ba430bb691b09c40a11822634 | |
parent | 91d93e03f14e820643742a1c242740fa7c0e236c [diff] |
bsc: Do not use strdup on argv parameter Fixes: Coverity CID 1206578
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index f701089..0d6bf2e 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c
@@ -116,7 +116,7 @@ daemonize = 1; break; case 'c': - config_file = strdup(optarg); + config_file = optarg; break; case 'T': log_set_print_timestamp(osmo_stderr_target, 1);