aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-26 10:26:36 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-27 08:30:37 +0100
commitabb347853317427a227592c4fa4b38e99f9e7152 (patch)
tree4573511439e9764274cbc931b0e1d9c842880b7a
parent496aee7cb809069133fe37f39ccac7607ec6c9b3 (diff)
gb_proxy: No need to copy optarg
Fixes: Coverity CID 1206578
-rw-r--r--openbsc/src/gprs/gb_proxy_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c
index 03299df..a06e1e6 100644
--- a/openbsc/src/gprs/gb_proxy_main.c
+++ b/openbsc/src/gprs/gb_proxy_main.c
@@ -172,7 +172,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);