commit | 038f97a69fe58d2bcb6cabcb82b3485f7d622ed2 | [log] [tgz] |
---|---|---|
author | Daniel Willmann <dwillmann@sysmocom.de> | Wed May 21 15:46:44 2014 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Thu May 22 14:34:24 2014 +0200 |
tree | bb61d6212924e569bbf55aadc310dba1a8cd0c12 | |
parent | 45fcb852369a1acaa2c626e1a1063e9d1f042825 [diff] [blame] |
bsc_hack: Don't strdup the string arguments Fixes CIDs #1206577, #1206578
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c index 61141fd..3307bc6 100644 --- a/openbsc/src/osmo-nitb/bsc_hack.c +++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -148,10 +148,10 @@ 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);