summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2014-05-21 15:40:53 +0200
committerDaniel Willmann <daniel@totalueberwachung.de>2014-05-21 15:41:35 +0200
commit7b79641675cdb5b6f782de1d8649f332d5c13084 (patch)
treebb61d6212924e569bbf55aadc310dba1a8cd0c12
parent8c86d1c494e52a507b63eda0f42fbc9288a9d27c (diff)
bsc_hack: Don't strdup the string argumentsdaniel/coverity
Fixes CIDs #1206577, #1206578
-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);