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 <pablo.de.lara.guarch@intel.com>
Signed-off-by: Aaron Campbell <aaron@arbor.net>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
This commit is contained in:
Pablo de Lara 2014-06-19 16:35:22 +01:00 committed by Thomas Monjalon
parent acf2d1bb9f
commit be1816f59e

View File

@ -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 */