From patchwork Wed May 21 13:46:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Willmann X-Patchwork-Id: 351198 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [IPv6:2001:780:45:1d:225:90ff:fe52:c662]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3EF751400D3 for ; Wed, 21 May 2014 23:48:32 +1000 (EST) Received: from localhost ([127.0.0.1] helo=ganesha.gnumonks.org) by ganesha.gnumonks.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn6sU-00058D-1Z; Wed, 21 May 2014 15:48:18 +0200 Received: from isonoe.totalueberwachung.de ([2a01:198:210:100::1]) by ganesha.gnumonks.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Wn6rN-00056Y-5B for openbsc@lists.osmocom.org; Wed, 21 May 2014 15:47:18 +0200 Received: from adrastea.totalueberwachung.de (24-134-58-61-dynip.superkabel.de [24.134.58.61]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by isonoe.totalueberwachung.de (Postfix) with ESMTPSA id C76C260058; Wed, 21 May 2014 15:47:08 +0200 (CEST) Received: by adrastea.totalueberwachung.de (Postfix, from userid 1000) id 03AFE220D7; Wed, 21 May 2014 15:47:05 +0200 (CEST) From: Daniel Willmann To: OpenBSC Mailing List Subject: [openbsc 2/2] bsc_hack: Don't strdup the string arguments Date: Wed, 21 May 2014 15:46:44 +0200 Message-Id: <7b79641675cdb5b6f782de1d8649f332d5c13084.1400680004.git.daniel@totalueberwachung.de> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <8c86d1c494e52a507b63eda0f42fbc9288a9d27c.1400680004.git.daniel@totalueberwachung.de> References: <8c86d1c494e52a507b63eda0f42fbc9288a9d27c.1400680004.git.daniel@totalueberwachung.de> In-Reply-To: <8c86d1c494e52a507b63eda0f42fbc9288a9d27c.1400680004.git.daniel@totalueberwachung.de> References: <8c86d1c494e52a507b63eda0f42fbc9288a9d27c.1400680004.git.daniel@totalueberwachung.de> X-Spam-Score: -0.0 (/) Cc: Daniel Willmann X-BeenThere: openbsc@lists.osmocom.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development of the OpenBSC GSM base station controller List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openbsc-bounces@lists.osmocom.org Errors-To: openbsc-bounces@lists.osmocom.org Fixes CIDs #1206577, #1206578 --- openbsc/src/osmo-nitb/bsc_hack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);