From: Pablo de Lara Date: Thu, 19 Jun 2014 15:35:22 +0000 (+0100) Subject: eal: fix option --base-virtaddr X-Git-Tag: spdx-start~10619 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=be1816f59e772e427fc5815281f9458a9314973a;p=dpdk.git eal: fix option --base-virtaddr 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 Signed-off-by: Aaron Campbell Acked-by: Anatoly Burakov --- diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 6994303a1e..d204387a64 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 */