[2/2] bsc_hack: Don't strdup the string arguments
diff mbox

Message ID 7b79641675cdb5b6f782de1d8649f332d5c13084.1400680004.git.daniel@totalueberwachung.de
State Accepted
Headers show

Commit Message

Daniel Willmann May 21, 2014, 1:46 p.m. UTC
Fixes CIDs #1206577, #1206578
---
 openbsc/src/osmo-nitb/bsc_hack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

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 @@  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);