summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2014-05-21 15:46:44 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-05-22 14:34:24 +0200
commit038f97a69fe58d2bcb6cabcb82b3485f7d622ed2 (patch)
treebb61d6212924e569bbf55aadc310dba1a8cd0c12 /openbsc/src/osmo-nitb
parent45fcb852369a1acaa2c626e1a1063e9d1f042825 (diff)
bsc_hack: Don't strdup the string arguments
Fixes CIDs #1206577, #1206578
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index 61141fdb0..3307bc63c 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -148,10 +148,10 @@ static void handle_options(int argc, char **argv)
daemonize = 1;
break;
case 'l':
- database_name = strdup(optarg);
+ database_name = optarg;
break;
case 'c':
- config_file = strdup(optarg);
+ config_file = optarg;
break;
case 'p':
create_pcap_file(optarg);