From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id EA776AF87 for ; Thu, 19 Jun 2014 17:36:06 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 19 Jun 2014 08:30:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,507,1400050800"; d="scan'208";a="560216732" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 19 Jun 2014 08:35:26 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s5JFZPhX002861; Thu, 19 Jun 2014 16:35:25 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s5JFZOS2025530; Thu, 19 Jun 2014 16:35:24 +0100 Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id s5JFZOJh025526; Thu, 19 Jun 2014 16:35:24 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Thu, 19 Jun 2014 16:35:22 +0100 Message-Id: <1403192122-25496-1-git-send-email-pablox.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] eal: Fixed EAL option --base-virtaddr X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 15:36:07 -0000 From: Pablo de Lara When parsing EAL option --base-virtaddr errno was not being set to 0 before calling strtoull, therefore function might fail unnecesarily. Signed-off-by: Pablo de Lara --- lib/librte_eal/linuxapp/eal/eal.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 6994303..d204387 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -562,6 +562,7 @@ eal_parse_base_virtaddr(const char *arg) char *end; uint64_t addr; + errno = 0; addr = strtoull(arg, &end, 16); /* check for errors */ -- 1.7.0.7