aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-06-12 11:19:38 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-06-12 11:19:38 +0200
commitb07df2bfd4468cb06a9f7abdb05759c402f2efb0 (patch)
treec689d8e498760b8ba430bb691b09c40a11822634
parentefd266ae120fe0ef3c1bf25ab5e94fbbdef23cce (diff)
bsc: Do not use strdup on argv parameter
Fixes: Coverity CID 1206578
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_main.c2
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);